Skip to content

Clip overlong model names in the compact model picker - #392

Merged
Tryanks merged 1 commit into
mainfrom
fix/compact-model-picker-overflow
Sep 10, 2026
Merged

Tryanks merged 1 commit into
mainfrom
fix/compact-model-picker-overflow

Conversation

@Tryanks

@Tryanks Tryanks commented Sep 10, 2026

Copy link
Copy Markdown
Owner

On mobile (compact composer), a long model name overflowed the model-picker trigger and overlapped the traits/effort chip beside it: the trigger had max_w(160px) but never clipped overflow, and its inner h_flex lacked min_w_0, so the label's .truncate() had no constrained width to work against.

This mirrors the sibling traits-chip trigger's pattern — overflow_hidden() on the compact button and min_w_0().overflow_hidden() on the inner h_flex — so the label truncates inside the 160px cap instead of spilling. Compact-only; the desktop layout is unchanged.

@Tryanks
Tryanks merged commit 3c2ee86 into main Sep 10, 2026
11 of 12 checks passed
@Tryanks
Tryanks deleted the fix/compact-model-picker-overflow branch September 10, 2026 10:04
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.

1 participant