Skip to content

fix(mobile-web): contain suggestions and widen message sheets - #3455

Merged
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:bob/mobile-input-layout-fixes
Oct 19, 2026
Merged

bobleer merged 1 commit into
GCWing:mainfrom
bobleer:bob/mobile-input-layout-fixes

Conversation

@bobleer

@bobleer bobleer commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fix mobile-web input suggestions overflowing their pill and edit/rollback message fields shrinking inside confirmation sheets. Long suggestions now ellipsize while keeping the acceptance icon visible; editing and rollback previews fill the available sheet width with leading-aligned text.

Type and Areas

Bug fix / UI regression; mobile web and focused browser CI.

Motivation / Impact

MobileButton labels use display: contents, which prevented the suggestion's overflow rules from applying to a layout box. Confirmation sheets center their children, so the message container also needed an explicit full width and text alignment. Both fixes use existing component hooks and styles.

Verification

  • Passed: pnpm --dir src/mobile-web run test:prompt-suggestion-browser
  • Passed: pnpm --dir src/mobile-web run test:rollback-browser
  • Passed: pnpm --dir src/mobile-web run type-check
  • Passed: pnpm run build:mobile-web
  • Passed: pnpm run theme:color-audit:all
  • Passed: pnpm run check:github-config, pnpm run check:repo-hygiene, and git diff --check

The Chrome fixtures exercise the production composer, chat page, stream projection and sheets at 320/390/768/1200px. They cover original-text acceptance, focus, compact/wide resizing, long Chinese text and URLs, light/dark sheets, a reduced-height viewport, scrolling, editing and cancellation without rollback or send calls. CI now runs both layout suites and publishes synthetic screenshots in the mobile-input-layout-screenshots artifact.

Reviewer Notes

CI screenshots: mobile-input-layout-screenshots (synthetic content; retained for 7 days).

AI-assisted; focused browser verification and production build completed. Remote-control host IO is simulated. Android, iOS and HarmonyOS received source-level layout review only; native devices and live remote workspace/control/peer/dispatch scenarios were not exercised.

Checklist

  • Focused change without secrets or unrelated artifacts.
  • Relevant verification and limitations recorded above.
  • Existing localized copy and semantic theme tokens are reused.

@bobleer
bobleer merged commit 97a4382 into GCWing:main Oct 19, 2026
14 checks passed
@bobleer
bobleer deleted the bob/mobile-input-layout-fixes branch October 27, 2026 02:18
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.

1 participant