fix: move VU meter above volume controls to stop blocking mute button
Meter was at nd.height-13 overlapping the mute button (nd.height-17, h=12). Moved to nd.height-35 so it sits in the dedicated extra space above the control zone, leaving the bottom 22px fully clear. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -696,11 +696,11 @@
|
|||||||
{Math.round(Math.max(0, Math.min(1, nd.volume)) * 100)}%
|
{Math.round(Math.max(0, Math.min(1, nd.volume)) * 100)}%
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<!-- VU meter: 20 segmented LEDs -->
|
<!-- VU meter: 20 segmented LEDs (above the volume/mute controls) -->
|
||||||
{#each Array(20) as _, i}
|
{#each Array(20) as _, i}
|
||||||
<rect
|
<rect
|
||||||
x={nd.x + 8 + i * ((nd.width - 16) / 20)}
|
x={nd.x + 8 + i * ((nd.width - 16) / 20)}
|
||||||
y={nd.y + nd.height - 13}
|
y={nd.y + nd.height - 35}
|
||||||
width={(nd.width - 16) / 20 - 1.5}
|
width={(nd.width - 16) / 20 - 1.5}
|
||||||
height="10"
|
height="10"
|
||||||
rx="1"
|
rx="1"
|
||||||
|
|||||||
Reference in New Issue
Block a user