IMPROVED - Fix dock bar height jump, enlarge icons, refine active state
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user