-
Notifications
You must be signed in to change notification settings - Fork 552
Fold chat header chips to icon bubbles when the column is narrow #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Chat-header chips fold to icon-only shapes when the header is narrow — | ||
| // the computer/inspector panel is open or the window is small — so the | ||
| // row stops wrapping and crushing the bot's name. The header is the | ||
| // `@container/chathead`; below 4xl (56rem) these variants kick in. | ||
| // | ||
| // Kept as plain literal strings so Tailwind's scanner sees every class. | ||
|
|
||
| /** Round bubble, icon only — Stop, + Task. */ | ||
| export const COMPACT_BUBBLE = | ||
| "@max-4xl/chathead:size-[30px] @max-4xl/chathead:justify-center @max-4xl/chathead:gap-0 @max-4xl/chathead:p-0"; | ||
|
|
||
| /** Rounded square, icon only — working folder, model. */ | ||
| export const COMPACT_SQUARE = | ||
| "@max-4xl/chathead:size-[30px] @max-4xl/chathead:justify-center @max-4xl/chathead:gap-0 @max-4xl/chathead:rounded-md @max-4xl/chathead:p-0"; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Add explicit accessible names to all compact header controls. The container-query variants hide visible text, but the controls rely on
titleor a bare icon/value. Addaria-labelvalues at every affected site, and retaintitlefor the pointer tooltip.src/components/ChatView.tsx#L843-L854: label the Stop button.src/components/ChatView.tsx#L1031-L1040: label the usage button with its usage context.src/components/ChatView.tsx#L1057-L1064: label the working-folder button.src/components/ModelPicker.tsx#L210-L226: label the active model trigger with the provider and model name.src/components/TaskPicker.tsx#L61-L67: label the single-task/new-task button.src/components/TaskPicker.tsx#L92-L100: label the multi-task trigger with its switch-task context.📍 Affects 3 files
src/components/ChatView.tsx#L843-L854(this comment)src/components/ChatView.tsx#L1031-L1040src/components/ChatView.tsx#L1057-L1064src/components/ModelPicker.tsx#L210-L226src/components/TaskPicker.tsx#L61-L67src/components/TaskPicker.tsx#L92-L100🤖 Prompt for AI Agents