From a7728e5168f4401d5eb10e417ab1acc189792ac5 Mon Sep 17 00:00:00 2001 From: Ali Haider Bajwa Date: Mon, 29 Jun 2026 16:15:54 +0500 Subject: [PATCH] Fix: Navbar overflow and cut-off at medium breakpoints - Added overflow-hidden to inner pill to clip overflowing text - Added whitespace-nowrap to nav links to prevent wrapping - Tightened gaps and padding at md breakpoint - Fixes #23 --- src/components/layout/Navigation.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/layout/Navigation.jsx b/src/components/layout/Navigation.jsx index 0357862..c5270a9 100644 --- a/src/components/layout/Navigation.jsx +++ b/src/components/layout/Navigation.jsx @@ -45,7 +45,7 @@ export default function Navigation() { : pathname === to || pathname.startsWith(`${to}/`); const linkClass = (active) => - `rounded-full px-4 py-2 text-label-md transition-all duration-300 ${ + `rounded-full px-4 py-2 text-label-md transition-all duration-300 whitespace-nowrap ${ active ? "bg-white/10 text-primary-fixed shadow-[inset_0_0_0_1px_rgba(243,230,75,0.18)]" : "text-on-surface-variant hover:bg-white/5 hover:text-on-surface" @@ -60,7 +60,7 @@ export default function Navigation() { : "bg-surface/60 backdrop-blur-xl" }`} > -
+
-
+
{links.map((link) => ( -
+