Skip to content

Commit

Permalink
conditionally apply pb-4 to bottom nav non-mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dkackman committed Jan 25, 2025
1 parent d781b4b commit e0de3b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function Header(
<div className='-mx-2'>
<TopNav />
</div>
<div className='mt-auto grid gap-1 text-md font-medium'>
<div className={`mt-auto grid gap-1 text-md font-medium ${!isMobile ? 'pb-4' : ''}`}>
<BottomNav />
</div>
</SheetContent>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function BottomNav({ isCollapsed }: NavProps) {
const className = isCollapsed ? 'h-5 w-5' : 'h-4 w-4';

return (
<nav className={`grid font-medium ${isCollapsed ? 'gap-2' : ''} pb-4`}
<nav className={`grid font-medium ${isCollapsed ? 'gap-2' : ''}`}
role="navigation"
aria-label={t`Secondary navigation`}>
<NavLink
Expand Down

0 comments on commit e0de3b7

Please sign in to comment.