From 6543ccada35c379fa009ff9a02402bfd2fd05120 Mon Sep 17 00:00:00 2001 From: moh Date: Sun, 20 Sep 2026 19:01:42 +0200 Subject: [PATCH] IMPROVED - Fix dock bar height jump, enlarge icons, refine active state --- components/layout/site-dock.tsx | 39 ++++++++++++++++----------------- components/ui/dock.tsx | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/components/layout/site-dock.tsx b/components/layout/site-dock.tsx index 530230e..b9f3fc6 100644 --- a/components/layout/site-dock.tsx +++ b/components/layout/site-dock.tsx @@ -186,13 +186,13 @@ export function SiteDock({ > {/* Logo — first icon in the dock */} - + -
+
{navItems.map(({ key, path, Icon, disabled }) => { const itemPath = path || "/"; @@ -223,7 +223,7 @@ export function SiteDock({ const inner = ( - + ); @@ -231,14 +231,20 @@ export function SiteDock({ + {/* top gloss */} + {disabled ? ( {inner} @@ -255,13 +261,6 @@ export function SiteDock({ )} - - {isActive ? ( - - ) : null} ); })} diff --git a/components/ui/dock.tsx b/components/ui/dock.tsx index 696c5b9..4457be2 100644 --- a/components/ui/dock.tsx +++ b/components/ui/dock.tsx @@ -107,7 +107,7 @@ const DockIcon = ({ ...props }: DockIconProps) => { const ref = useRef(null); - const padding = Math.max(6, size * 0.2); + const padding = Math.max(4, size * 0.12); const defaultMouseX = useMotionValue(Infinity); const distanceCalc = useTransform(mouseX ?? defaultMouseX, (val: number) => {