diff --git a/components/audio-player/floating-player.tsx b/components/audio-player/floating-player.tsx index 79f0bc81..08ad49c2 100644 --- a/components/audio-player/floating-player.tsx +++ b/components/audio-player/floating-player.tsx @@ -272,37 +272,44 @@ function ProgressBar({ }, []); if (thin) { - // The wrapper is intentionally taller than the visible bar so the - // absolutely-positioned thumb has room to sit centred without - // poking out of the player card's overflow-hidden clip box. + // Layout, top to bottom: // - // wrapper h-4 (16px) ┐ - // visible bar h-1.5 │ centred via flex - // thumb size-3 ┘ sits on the bar, absolutely positioned + // outer px-3 pt-2 — gutter so the size-3 thumb at progress=0% + // and 100% sits clear of the card's rounded + // corners (radius 16px → 6px thumb half-width + // fits inside the curve at every y). + // inner h-4 — the bar's click/touch target. The visible + // h-1.5 bar is centred inside it, and the + // thumb is absolute on top. + // + // The card's overflow-hidden stays — nothing protrudes past the + // gutter, so nothing gets clipped. return ( -
-
+
+
+
+
+
-
); }