mirror of
https://github.com/siddharthvaddem/openscreen.git
synced 2026-11-03 14:40:47 +08:00
Replace the single `verticalInset` CSS prop (which tried to shrink the canvas element) with `topInset`/`bottomInset` drawing-space offsets. The canvas remains `absolute inset-0` (full row height); the polygon baseline is drawn at `H - bottomInset` and the amplitude is scaled to `drawHeight * 0.9` — so the waveform is guaranteed to stay within [topInset, H - bottomInset] regardless of sub-pixel CSS rounding. Trim row: topInset=0, bottomInset=6 (row minHeight 36 − item height 30) eliminates the faint green line that was visible below the trim box. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>