fix: show Plus button only when effects panel is expanded

- Plus button now conditionally rendered based on track.effectsExpanded
- Matches automation controls behavior
- Cleaner UI when panel is collapsed

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-19 18:11:06 +01:00
parent 314fced79f
commit 197bff39fc

View File

@@ -660,16 +660,18 @@ export function TrackList({
))} ))}
</div> </div>
{/* Add effect button */} {/* Add effect button - only visible when expanded */}
<Button {track.effectsExpanded && (
variant="ghost" <Button
size="icon-sm" variant="ghost"
onClick={() => setEffectBrowserTrackId(track.id)} size="icon-sm"
title="Add effect" onClick={() => setEffectBrowserTrackId(track.id)}
className="h-5 w-5 flex-shrink-0" title="Add effect"
> className="h-5 w-5 flex-shrink-0"
<Plus className="h-3 w-3" /> >
</Button> <Plus className="h-3 w-3" />
</Button>
)}
{/* Show/hide toggle */} {/* Show/hide toggle */}
<Button <Button