Skip to content

fix(ui): wrap agent selector buttons instead of clipping overflow#32

Merged
johannesjo merged 1 commit intojohannesjo:mainfrom
ASRagab:fix/agent-selector-wrap
Mar 24, 2026
Merged

fix(ui): wrap agent selector buttons instead of clipping overflow#32
johannesjo merged 1 commit intojohannesjo:mainfrom
ASRagab:fix/agent-selector-wrap

Conversation

@ASRagab
Copy link
Copy Markdown
Contributor

@ASRagab ASRagab commented Mar 24, 2026

Summary

  • Agent buttons in the New Task dialog were rendered in a single non-wrapping flex row with flex: 1, causing buttons to shrink and clip when many agents are configured (e.g., 6+ custom agents)
  • Buttons now wrap onto multiple lines with content-based sizing (flex: 0 1 auto, min-width: 70px)
  • Dialog widens from 420px to 540px when more than 8 agents are present to avoid excessive rows

Before / After

CleanShot 2026-03-24 at 11 37 26 CleanShot 2026-03-24 at 11 24 27

Test plan

  • Open New Task dialog with default agents (3-5) — buttons should display on a single row as before
  • Add custom agents until 6+ are visible — buttons should wrap to a second row
  • Add 9+ agents — dialog should widen to 540px
  • Verify buttons with short names ("CC") don't collapse below 70px
  • Verify buttons with long names render without truncation

🤖 Generated with Claude Code

Agent buttons in the New Task dialog were rendered in a single flex row
with flex:1, causing buttons to shrink and clip when many agents were
configured. Buttons now wrap onto multiple lines with content-based
sizing (min-width: 70px). The dialog also widens from 420px to 540px
when more than 8 agents are present.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@johannesjo
Copy link
Copy Markdown
Owner

Thank you very much! <3

@johannesjo johannesjo merged commit fb86cc5 into johannesjo:main Mar 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants