From 1d35c8f5b2ce0e06d2d617507705615de93149a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Wed, 19 Nov 2025 00:38:55 +0100 Subject: [PATCH] feat: center fader with knob above and buttons below MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Restructured TrackControls layout using flexbox justify-between - Pan knob positioned at top - Fader vertically centered in flex-1 middle section - R/S/M/A/E buttons positioned at bottom in two rows - Main container uses h-full for proper vertical distribution 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- components/tracks/TrackControls.tsx | 157 ++++++++++++++-------------- 1 file changed, 80 insertions(+), 77 deletions(-) diff --git a/components/tracks/TrackControls.tsx b/components/tracks/TrackControls.tsx index 1c3bdb1..41d1f25 100644 --- a/components/tracks/TrackControls.tsx +++ b/components/tracks/TrackControls.tsx @@ -56,8 +56,8 @@ export function TrackControls({ className, }: TrackControlsProps) { return ( -
- {/* Pan Control - Centered */} +
+ {/* Pan Control - Top */}
- {/* Track Fader with Integrated Meters - Centered */} -
+ {/* Track Fader - Center (vertically centered in remaining space) */} +
- {/* Control Buttons Row 1: R/S/M */} -
- {/* Record Arm */} - {onRecordToggle && ( - - )} - - {/* Solo Button */} - {onSoloToggle && ( - - )} - - {/* Mute Button */} - )} - title="Mute track" - > - M - -
- {/* Control Buttons Row 2: A/E */} -
- {/* Automation Toggle */} - {onAutomationToggle && ( + {/* Solo Button */} + {onSoloToggle && ( + + )} + + {/* Mute Button */} - )} +
- {/* Effects Button */} - {onEffectsClick && ( - - )} + {/* Control Buttons Row 2: A/E */} +
+ {/* Automation Toggle */} + {onAutomationToggle && ( + + )} + + {/* Effects Button */} + {onEffectsClick && ( + + )} +
);