fix: restore horizontal scrollbar by making waveform use container height
- Remove fixed height from Track waveformOnly mode - Use h-full class to fill flex container instead - Allows parent scroll container to show horizontal scrollbar based on zoom - Waveform now properly expands horizontally without clipping 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -830,10 +830,9 @@ export function Track({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative bg-waveform-bg border-b transition-all duration-200",
|
"relative bg-waveform-bg border-b transition-all duration-200 h-full",
|
||||||
isSelected && "bg-primary/5",
|
isSelected && "bg-primary/5",
|
||||||
)}
|
)}
|
||||||
style={{ height: trackHeight }}
|
|
||||||
>
|
>
|
||||||
{/* Inner container with dynamic width */}
|
{/* Inner container with dynamic width */}
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -208,13 +208,13 @@ export function TrackList({
|
|||||||
<React.Fragment key={track.id}>
|
<React.Fragment key={track.id}>
|
||||||
{/* Track Waveform Row with bars stacked below - Fixed height container */}
|
{/* Track Waveform Row with bars stacked below - Fixed height container */}
|
||||||
<div
|
<div
|
||||||
className="flex flex-col overflow-hidden"
|
className="flex flex-col"
|
||||||
style={{
|
style={{
|
||||||
height: track.collapsed ? '48px' : `${track.height || 240}px`
|
height: track.collapsed ? '48px' : `${track.height || 240}px`
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Waveform - Takes remaining space */}
|
{/* Waveform - Takes remaining space */}
|
||||||
<div className="flex-1 min-h-0">
|
<div className="flex-1 min-h-0 relative">
|
||||||
<Track
|
<Track
|
||||||
track={track}
|
track={track}
|
||||||
zoom={zoom}
|
zoom={zoom}
|
||||||
|
|||||||
Reference in New Issue
Block a user