Skip to content

Commit 3d53336

Browse files
lwinmoepaingclaude
andcommitted
🐛 fix(navbar): fix mobile menu overlay layout for small screens (iPhone 7)
Replace absolute-positioned bottom section with flexbox mt-auto layout, reduce link padding/gap, and add overflow-y-auto to prevent overlap. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a0d4db7 commit 3d53336

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/components/Common/Navbar/Navbar.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const MobileNavLink = ({
240240
>
241241
<MseLink
242242
href={href}
243-
className="group relative block py-2 sm:py-3"
243+
className="group relative block py-1.5 sm:py-3"
244244
>
245245
<span onClick={onClick} className="flex items-center gap-4">
246246
{/* Index number */}
@@ -430,16 +430,16 @@ const Navbar = () => {
430430
</div>
431431

432432
{/* Menu content */}
433-
<div className="relative h-full flex flex-col justify-center px-6 sm:px-12">
433+
<div className="relative h-full flex flex-col px-6 sm:px-12 pt-20 pb-8 overflow-y-auto">
434434
{/* Section label */}
435-
<div className="mb-8">
435+
<div className="mb-4 sm:mb-8">
436436
<span className={cn("font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-600", mmFont)}>
437437
{t("navigation")}
438438
</span>
439439
</div>
440440

441441
{/* Links */}
442-
<nav className="flex flex-col gap-2">
442+
<nav className="flex flex-col gap-1">
443443
{linkKeys.map((link, i) => (
444444
<MobileNavLink
445445
key={link.key}
@@ -454,10 +454,10 @@ const Navbar = () => {
454454
</nav>
455455

456456
{/* Bottom section — auth + branding */}
457-
<div className="absolute bottom-12 left-6 right-6 sm:left-8 sm:right-8">
457+
<div className="mt-auto pt-6">
458458
{/* Auth */}
459459
{!authLoading && (
460-
<div className="mb-5">
460+
<div className="mb-4">
461461
{isAuthenticated ? (
462462
<UserAvatar />
463463
) : (
@@ -466,9 +466,9 @@ const Navbar = () => {
466466
</div>
467467
)}
468468

469-
<div className="h-[1px] w-full bg-white/5 mb-4" />
469+
<div className="h-[1px] w-full bg-white/5 mb-3" />
470470
<div className="flex items-center justify-between">
471-
<p className={cn("font-mono text-[10px] text-zinc-600 tracking-widest uppercase", mmFont)}>
471+
<p className={cn("font-mono text-[10px] text-zinc-600 tracking-widest uppercase truncate mr-2", mmFont)}>
472472
{t("brandName")}
473473
</p>
474474
<LanguageToggle />

0 commit comments

Comments
 (0)