Repository navigation
fix(ui): show more chat text on mobile - #128944
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
August 25, 2026 00:58
Co-authored-by: Tak Hoffman <[email protected]>
roboclaw-bot
force-pushed
the
openclaw/maximize-text-space-on-mobile
branch
from
August 25, 2026 01:16
03c3028 to
1923058
Compare
Collaborator
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 25, 2026
Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
Fixes an issue where users reading chats on phones would see the transcript reserve more horizontal space than needed, causing earlier line wraps and making the message column feel narrower than the nearly full-width composer.
Why This Change Was Made
The shared chat layout now names the additional desktop reading inset and sets the mobile transcript gutter to 16 px in the stylesheet that owns the canonical width formula. This also removes the stale mobile width declaration that lost the cascade to the later chat stylesheet. Inline approvals keep the same transcript alignment, while desktop retains its existing 48rem maximum.
Production LOC: +9/-10 (net -1) | Tests: +28/-1
User Impact
On a 393 px phone viewport, the transcript grows from 317 px to 333 px while remaining centered and overflow-free. Desktop keeps its existing 768 px readable column.
Evidence
Mobile before and after
Desktop after
pnpm test ui/src/pages/chat/chat-responsive.browser.test.ts— 93/93 passed on AWS Crabbox.node scripts/check-changed.mjs -- ui/src/pages/chat/chat-responsive.browser.test.ts ui/src/styles/chat/layout.css ui/src/styles/layout.mobile.css— full changed-file gate passed, including formatting, UI/core typechecks, lint, i18n, dead-code, and repository guards..agents/skills/autoreview/scripts/autoreview --mode uncommitted— clean; no accepted/actionable findings.git diff --check— passed.The visual fixture uses the same message, viewport, composer, and scrollbar behavior for both mobile states. Chromium's reserved scrollbar gutters add 14 px to each painted edge in these desktop-engine screenshots; the product CSS inset itself changes from 24 px to 16 px per side.