fix: enforce minimum 360px height for all tracks using Math.max

- Track component now uses Math.max to ensure track.height is at least MIN_TRACK_HEIGHT
- TrackList component also uses Math.max for consistent enforcement
- Fixes issue where tracks with old height values (340px, 357px) were smaller
- All tracks now guaranteed to be exactly 360px regardless of stored height

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-19 13:09:44 +01:00
parent 6658bbbbd4
commit 0babc469cc
2 changed files with 3 additions and 3 deletions

View File

@@ -641,7 +641,7 @@ export function Track({
}
};
const trackHeight = track.collapsed ? COLLAPSED_TRACK_HEIGHT : track.height;
const trackHeight = track.collapsed ? COLLAPSED_TRACK_HEIGHT : Math.max(track.height || MIN_TRACK_HEIGHT, MIN_TRACK_HEIGHT);
// Track height resize handlers
const handleResizeStart = React.useCallback(