-
Notifications
You must be signed in to change notification settings - Fork 529
better ux for thinkingmode control (more responsive, less likely to overlap message) #2565
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
🧩 Analysis chain
Responsive width constraints updated for better UX.
The user message max-width changes provide more consistent spacing to prevent overlap with other UI elements. The base width is adjusted to
calc(100%-50px), and at container widths ≥450px, it further constrains tocalc(100%-105px)to accommodate the expanded ThinkingMode button.Verify that the
@w450container query breakpoint is properly configured in your Tailwind setup:🏁 Script executed:
Length of output: 59
I need to search more broadly for the Tailwind configuration in this codebase. Let me gather additional information:
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 1216
🏁 Script executed:
Length of output: 309
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 806
🏁 Script executed:
Length of output: 150
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 309
🏁 Script executed:
Length of output: 678
🏁 Script executed:
Length of output: 59
🏁 Script executed:
Length of output: 3062
🏁 Script executed:
Length of output: 886
🏁 Script executed:
Length of output: 6061
🌐 Web query:
💡 Result:
Short summary + examples:
Turn an element into a container with @container, then use container-query variants that start with @ (e.g. @sm, @md, @max-md). You can also use @Min-[] / @max-[] arbitrary values and named containers like @container/foo with variants @sm/foo. [1][2]
Customize container breakpoints in your CSS with @theme using --container-* variables (and media breakpoints with --breakpoint-*). Example: define new container sizes or override defaults. [1][2]
Examples
- Basic container query
<style type="text/tailwindcss"> @import "tailwindcss"; </style>- Define custom container breakpoints via @theme
<style type="text/tailwindcss"> @import "tailwindcss"; @theme { --container-8xl: 96rem; /* or reset all and define your own: --container-*: initial; --container-tablet: 20rem; --container-laptop: 32rem; */ } </style>Then use @8XL or @tablet as container variants. [1][2]
Notes
Sources
[1] Tailwind CSS docs — Responsive design / Container queries.
[2] StackOverflow discussion: using @container and customizing --container-* in Tailwind v4.
[3] Tailwind v4 beta notes (container query support in core).
🌐 Web query:
💡 Result:
Short answer: Tailwind v4.1 uses @container to turn an element into a CSS Container and then container-query variants to apply utilities based on the parent container’s size. You can use the built‑in named container breakpoints (e.g. @sm, @md, @lg) and also arbitrary container-query ranges with bracket syntax (e.g. @Min-[450px], @max-[28rem]) to target specific container widths.
How it works (example):
@container-aware text
becomes larger when parent ≥ 450px
Notes:
Sources: Tailwind v4 container-query docs and release notes (container queries, @min/@max variants) and examples of arbitrary container-query usage. [1][2][3]
References
[1] Tailwind v4 container-query support & examples (official v4 docs/release notes).
[2] Tailwind docs: container / sizing utilities (shows @container usage and @max/@min variants).
[3] Examples / community threads showing arbitrary @Min-[...] usage for container queries.
@w450 container query variants will not work—@container directive is missing from component hierarchy.
While the
@w450breakpoint is properly defined infrontend/tailwindsetup.cssas--container-w450: 450px;and Tailwind v4.1.17 is correctly configured, container query variants like@w450:max-w-[calc(100%-105px)](line 226) and@w450:inline(line 75) require a parent element marked with@container. A search of the codebase found no@containerdirective anywhere, meaning these responsive constraints will be silently ignored and never activate.Add
@containerto an appropriate parent element in the component hierarchy, or remove the@w450:variants if container queries are not intended.🤖 Prompt for AI Agents