IMPROVED - Fix dock bar height jump, enlarge icons, refine active state

This commit is contained in:
moh
2026-09-20 19:01:42 +02:00
parent 6c213699a2
commit 6543ccada3
2 changed files with 20 additions and 21 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ const DockIcon = ({
...props
}: DockIconProps) => {
const ref = useRef<HTMLDivElement>(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) => {