Skip to content

collapse composer pills to icons on narrow screens#7269

Merged
Imagineer99 merged 5 commits into
unslothai:mainfrom
NilayYadav:composer-toolbar-overflow
Jul 21, 2026
Merged

collapse composer pills to icons on narrow screens#7269
Imagineer99 merged 5 commits into
unslothai:mainfrom
NilayYadav:composer-toolbar-overflow

Conversation

@NilayYadav

@NilayYadav NilayYadav commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

On phones the composer's toolbar row was wider than the composer itself, so the Search and Code chips got cut off at the right edge. The compact icon-only pill mode already existed, but only kicked in when there were more than 4 pills. With the default 4 it never triggered, so phones got the full labelled row. Now narrow viewports collapse too.

The chip group goes from 374px to 138px, which leaves enough room for the mic and send buttons to sit on the same line the composer drops from three rows to one. Desktop is unchanged.

Also lets the group wrap instead of clipping, as a fallback: at exactly 768px the labelled row only has 18px of slack, so a longer translated label would overflow again.

Before:
Screenshot 2026-07-21 at 11 35 18 PM

After:
Screenshot 2026-07-21 at 11 37 36 PM

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves the mobile responsiveness of the chat composer by collapsing pills to icons on narrow viewports using the useIsMobile hook, and updating CSS classes to allow wrapping. Feedback points out that the pill container in SharedComposer does not use the updated .unsloth-composer-left class or flex-wrap, which could cause layout overflow or clipping on mobile devices, and suggests applying the class there as well.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread studio/frontend/src/features/chat/shared-composer.tsx
@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 20872f17d4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@Imagineer99

Copy link
Copy Markdown
Collaborator

Manually confirmed before and after behaviour works as expected in Chrome DevTools. Nice work @NilayYadav.

@Imagineer99
Imagineer99 merged commit d437bc5 into unslothai:main Jul 21, 2026
35 of 36 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