Skip to content

fix(ui): show more chat text on mobile - #128944

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/maximize-text-space-on-mobile
Aug 25, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/maximize-text-space-on-mobile

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

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

Before: 24 px CSS inset After: 16 px CSS inset
Mobile chat before: narrower transcript with 24 pixel CSS inset Mobile chat after: wider transcript with 16 pixel CSS inset

Desktop after

Desktop chat retains its existing readable maximum width

  • Pre-fix Chromium reproduction: the new mobile assertion failed on the existing 48 px total CSS inset while the desktop row passed.
  • 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.
  • Remote test + gate: run_1f7a044b1041.
  • Exact final visual capture: run_8c428a35fcf9.
  • .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.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 25, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 25, 2026 00:58
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/maximize-text-space-on-mobile branch from 03c3028 to 1923058 Compare August 25, 2026 01:16
@roboclaw-bot
roboclaw-bot merged commit b840a3c into main Aug 25, 2026
94 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/maximize-text-space-on-mobile branch August 25, 2026 01:27
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant