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,7 +660,8 @@ export function TrackList({
))} ))}
</div> </div>
{/* Add effect button */} {/* Add effect button - only visible when expanded */}
{track.effectsExpanded && (
<Button <Button
variant="ghost" variant="ghost"
size="icon-sm" size="icon-sm"
@@ -670,6 +671,7 @@ export function TrackList({
> >
<Plus className="h-3 w-3" /> <Plus className="h-3 w-3" />
</Button> </Button>
)}
{/* Show/hide toggle */} {/* Show/hide toggle */}
<Button <Button