Skip to content

feat(webui): loosen the composer pill width cap and keep the row on one line - #984

Merged
alcholiclg merged 2 commits into
modelscope:mainfrom
Col0ring:feat/composer-pill-width
Sep 17, 2026
Merged

alcholiclg merged 2 commits into
modelscope:mainfrom
Col0ring:feat/composer-pill-width

Conversation

@Col0ring

@Col0ring Col0ring commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • swap the composer pill width cap for a looser one: min-w-24 floor and a max-w-[250px] cap, so a pill grows with its label up to 250px then truncates (replacing both the old !max-w-[min(96px,55cqw)] cap and its fitContent opt-out)
  • keep the pills row on one line (flex-nowrap plus min-w-0 on every wrapper) so a tight row shrinks each pill toward its floor and truncates the label instead of spilling onto a second row
  • lower the inline threshold from 600px to 550px so opening the workspace panel, which splits the chat column, no longer collapses the pills into the toggle right away
  • widen the composer actions gap to 32px

Test

  • pnpm typecheck

- let a pill grow to its label with `min-w-24` as the only width constraint,
  replacing `fitContent`
- keep the pills row nowrap so a tight row shrinks and truncates instead of
  wrapping
- lower the inline threshold to 550px
- give the pill a `max-w-[250px]` cap so a long label truncates instead of
  growing without bound, keeping `min-w-24` as the floor
- widen the composer actions gap to 32px
@Col0ring Col0ring changed the title feat(webui): drop the composer pill width cap and keep the row on one line feat(webui): loosen the composer pill width cap and keep the row on one line Sep 17, 2026
@alcholiclg
alcholiclg merged commit 51cc817 into modelscope:main Sep 17, 2026
@Col0ring
Col0ring deleted the feat/composer-pill-width branch September 18, 2026 03:16
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