Skip to content

web-ui: size chat gutters by the surface's own width, not the window - #424

Merged
ReganBell merged 1 commit into
mainfrom
upstream-1884
Aug 13, 2026
Merged

web-ui: size chat gutters by the surface's own width, not the window#424
ReganBell merged 1 commit into
mainfrom
upstream-1884

Conversation

@ReganBell

Copy link
Copy Markdown
Collaborator

A chat pane's column width and gutters were driven by window-level responsive state: a max-width media query set the layout variables globally on :root, and the height-driven compact density tier hard-coded the chat scroll's horizontal padding. In the split canvas a pane's size is decoupled from the window, so resizing the window flipped panes between a centered column with wide gutters and a full-bleed layout — user messages crowded the pane edge. Each chat surface is now an inline-size container and the layout variables are driven by container queries on the surface's own width; the compact density tier only squeezes vertical padding. Single-pane behavior at the same widths is unchanged.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

A chat pane's column width and gutters were driven by window-level responsive state: a max-width media query set the layout variables globally on :root, and the height-driven compact density tier hard-coded the chat scroll's horizontal padding. In the split canvas a pane's size is decoupled from the window, so resizing the window flipped panes between a centered column with wide gutters and a full-bleed layout — user messages crowded the pane edge. Each chat surface is now an inline-size container and the layout variables are driven by container queries on the surface's own width; the compact density tier only squeezes vertical padding. Single-pane behavior at the same widths is unchanged.
@ReganBell
ReganBell merged commit f0d9354 into main Aug 13, 2026
21 checks passed
@ReganBell
ReganBell deleted the upstream-1884 branch August 13, 2026 20:54
ReganBell added a commit that referenced this pull request Aug 13, 2026
…424)

A chat pane's column width and gutters were driven by window-level responsive state: a max-width media query set the layout variables globally on :root, and the height-driven compact density tier hard-coded the chat scroll's horizontal padding. In the split canvas a pane's size is decoupled from the window, so resizing the window flipped panes between a centered column with wide gutters and a full-bleed layout — user messages crowded the pane edge. Each chat surface is now an inline-size container and the layout variables are driven by container queries on the surface's own width; the compact density tier only squeezes vertical padding. Single-pane behavior at the same widths is unchanged.

<!-- codesmith:footer -->
---
<a href="https://app.blacksmith.sh/yc-software/codesmith/qm/pr/400"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789237877&installation_model_id=19911&pr_number=400&repository=yc-software%2Fqm&return_to=https%3A%2F%2Fgithub.com%2Fyc-software%2Fqm%2Fpull%2F400&signature=3d4a1d708fdac29a61ecb6becbfb764621031eb26578e634623d9c429472b8d7"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->
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