Skip to content

Commit 0f547f9

Browse files
committed
Fix mobile menu
1 parent 75cb249 commit 0f547f9

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

components/Header/Hamburger.component.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const Hamburger = () => {
1414
to: [
1515
{
1616
opacity: isExpanded ? 1 : 0,
17-
marginTop: isExpanded ? '180px' : '-180px',
17+
marginTop: isExpanded ? '335px' : '-180px',
1818
},
1919
],
2020
from: {
2121
opacity: isExpanded ? 1 : 0,
22-
marginTop: isExpanded ? '180px' : '-180px',
22+
marginTop: isExpanded ? '335px' : '-180px',
2323
},
2424
});
2525

@@ -99,7 +99,7 @@ const Hamburger = () => {
9999
className="absolute right-0 z-10 w-full text-center text-black bg-white "
100100
>
101101
<ul>
102-
<li className="w-full p-4 border-b border-gray-400 border-solid rounded">
102+
<li className="w-full p-4 border-t border-gray-400 border-solid rounded">
103103
<Link href="/">
104104
<a
105105
className="inline-block px-4 py-2 no-underline hover:text-black hover:underline"
@@ -109,7 +109,7 @@ const Hamburger = () => {
109109
</a>
110110
</Link>
111111
</li>
112-
<li className="w-full p-4 border-b border-gray-400 border-solid rounded">
112+
<li className="w-full p-4 border-t border-gray-400 border-solid rounded">
113113
<Link href="/produkter">
114114
<a
115115
className="inline-block px-4 py-2 no-underline hover:text-black hover:underline"
@@ -121,7 +121,7 @@ const Hamburger = () => {
121121
</li>
122122
<li
123123
id="mobile-li"
124-
className="w-full p-4 border-b border-gray-400 border-solid rounded"
124+
className="w-full p-4 border-t border-b border-gray-400 border-solid rounded"
125125
>
126126
<Link href="/kategorier">
127127
<a

styles/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
height: 24rem;
77
}
88

9-
#mobile-menu {
10-
height: 300px;
11-
}
12-
139
#cart-div {
1410
width: 300px;
1511
}

0 commit comments

Comments
 (0)