Skip to content

Commit

Permalink
use dvh and fix padding for menu sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicarrojado committed Mar 24, 2024
1 parent d09710e commit e3acd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/menu-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function MenuToggle() {
<span className="sr-only">Toggle menu</span>
</Button>
</SheetTrigger>
<SheetContent>
<SheetContent className="w-full max-w-[325px] pr-0 sm:max-w-[325px]">
<SheetHeader>
<SheetTitle>
<span className="mr-2">🇸🇬</span>
Expand All @@ -38,7 +38,7 @@ export default function MenuToggle() {
Alerts
</SheetTitle>
</SheetHeader>
<ScrollArea className="my-4 h-[calc(100vh-6rem)] pl-7">
<ScrollArea className="my-4 h-[calc(100dvh-5.2rem)] pb-10 pl-7">
<div className="flex flex-col space-y-3">
{MAIN_MENU_ITEMS.map(({ title, href }) => (
<Link key={href} href={href} onClick={closeSheet}>
Expand Down

0 comments on commit e3acd8b

Please sign in to comment.