From 864aeaf600eb3af20f700af2c68f6570abbf1115 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Fri, 5 Jun 2026 00:32:32 +0300 Subject: [PATCH] fix(desktop-header): full-width row so all nav items fit (no overflow/overlap) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nav was centered inside a max-w-6xl grid column; 8 icon+label items were wider than that column, so the centered overflow spilled LEFT over the logo (ZeroPing's tail poked out from under 'Главная'). Switch to a full-width flex row — logo (shrink-0) | nav | controls (shrink-0, pinned right via ml-auto) — widen the container cap to 1600px, slightly compact the items, and drop the invisible theme toggle from layout when it's not toggleable. Icons + labels all stay visible: no scroll, no shrink, no overlap. --- src/components/layout/AppShell/AppShell.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/layout/AppShell/AppShell.tsx b/src/components/layout/AppShell/AppShell.tsx index 4eef427..ad9e7c8 100644 --- a/src/components/layout/AppShell/AppShell.tsx +++ b/src/components/layout/AppShell/AppShell.tsx @@ -147,7 +147,7 @@ export function AppShell({ children }: AppShellProps) { onClick={handleNavClick} aria-label={label} className={cn( - 'relative flex items-center gap-2 rounded-lg px-3 py-1.5 text-[13px] font-medium transition-colors duration-200', + 'relative flex shrink-0 items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-[13px] font-medium transition-colors duration-200', active ? admin ? 'text-warning-400' @@ -167,7 +167,7 @@ export function AppShell({ children }: AppShellProps) { transition={{ type: 'spring', stiffness: 500, damping: 35 }} /> )} - + {label} ); @@ -188,9 +188,9 @@ export function AppShell({ children }: AppShellProps) { {/* Desktop Header */}
-
+
{/* Logo */} - +
{appName} - {/* Center Navigation */} -