Skip to content

Commit 3dcf2d3

Browse files
authored
✨ Fix mobileMenu not being scrollable (#70)
* 💄 Remove indentation of harfen pages * 💄 Add custom spacing * ✨ Make mobileMenu scrollable * 💄 Add responsive height to mobilemenu * Replace breakpoint * 💄 Increase padding bottom To make last item in menu visible * 💄 Further increase padding-bottom, change breakpoint for top
1 parent d9755de commit 3dcf2d3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/navbar/Navbar.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,18 @@ const Navbar = () => {
2828
leaveFrom="opacity-100"
2929
leaveTo="opacity-0"
3030
>
31-
<Menu.Items className="absolute right-0 justify-items-end w-full mt-100 pt-6 pb-2 bg-background grid grid-flow-row gap-y-4 ">
31+
<Menu.Items className="absolute right-0 top-18 md:top-20 justify-items-end w-full pt-6 pb-24 bg-background grid grid-flow-row gap-y-4 max-h-screen overflow-scroll overflow-x-hidden">
3232
<Menu.Item>
3333
<NavLink className="mr-5" text="harfen" link="harfen" />
34-
{/* Need to add the single harps here as well */}
3534
</Menu.Item>
3635
<Menu.Item>
37-
<NavLink text="fiona" link="harfen/fiona" />
36+
<NavLink className="mr-5" text="fiona" link="harfen/fiona" />
3837
</Menu.Item>
3938
<Menu.Item>
40-
<NavLink text="wyda" link="harfen/wyda" />
39+
<NavLink className="mr-5" text="wyda" link="harfen/wyda" />
4140
</Menu.Item>
4241
<Menu.Item>
43-
<NavLink text="isabeau" link="harfen/isabeau" />
42+
<NavLink className="mr-5" text="isabeau" link="harfen/isabeau" />
4443
</Menu.Item>
4544
<Menu.Item>
4645
<NavLink className="mr-5" text="leihharfen" link="leihharfen" />

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
spacing: {
1010
70: "17.17rem",
1111
100: "25.8rem",
12+
18: "4.2rem",
1213
},
1314
fontFamily: {
1415
sans: ["Poppins", "Helvetica", "Arial", "sans-serif"],

0 commit comments

Comments
 (0)