From b8d2cb95850e7edfb550471aa7ff8c1e77cadffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 18 Nov 2025 06:59:24 +0100 Subject: [PATCH] refactor: make volume and pan sliders inline with labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed slider layout to horizontal: - Label | Slider | Value all in one row - Volume: "Volume" icon + label (64px) | slider (flex) | "80%" (40px) - Pan: "Pan" label (64px) | slider (flex) | "C/L50/R50" (40px) - Much more compact and professional looking - Similar to professional DAW mixer strips 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- components/tracks/Track.tsx | 66 ++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/components/tracks/Track.tsx b/components/tracks/Track.tsx index 9f0b7db..20318f8 100644 --- a/components/tracks/Track.tsx +++ b/components/tracks/Track.tsx @@ -262,44 +262,44 @@ export function Track({ {!track.collapsed && ( <> {/* Volume */} -
-
- - - {Math.round(track.volume * 100)}% - +
+ +
+
- + + {Math.round(track.volume * 100)}% +
{/* Pan */} -
-
- - - {track.pan === 0 - ? 'C' - : track.pan < 0 - ? `L${Math.round(Math.abs(track.pan) * 100)}` - : `R${Math.round(track.pan * 100)}`} - +
+ +
+
- + + {track.pan === 0 + ? 'C' + : track.pan < 0 + ? `L${Math.abs(Math.round(track.pan * 100))}` + : `R${Math.round(track.pan * 100)}`} +
)}