Skip to content

fix(ui): give mobile sidebar titles more reading space - #160366

Merged
roboclaw-bot merged 8 commits into
mainfrom
openclaw/otimizacao-do-espaco-da-sidebar-mobile
Sep 28, 2026
Merged

roboclaw-bot merged 8 commits into
mainfrom
openclaw/otimizacao-do-espaco-da-sidebar-mobile

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: mobile sidebar session titles are cut off too early because stacked gutters and empty metadata slots consume reading space.

User Impact

At a 390 px viewport, the drawer increases only 320 → 336 px, while usable title width increases 190 → 244 px. Of the 54 px gained, 38 px comes from internal layout. Text size, 44 px touch targets, and the desktop sidebar are unchanged.

Why This Change Was Made

Cap the drawer at 336 px (90vw on smaller phones), tighten row inset/gap to 2/4 px, and omit empty metadata slots. Keep 8 px outer gutters for the existing classic-scrollbar clearance contract. Retain useful previews, status and Incognito badges, child toggles, current-main safe-area bounds, and palette shadows.

Evidence

  • Actual Control UI with deterministic mock Gateway data. Measured title widths, original → final: 320 px viewport 145.19 → 196 px; 390 px 190 → 244 px; 1280 px desktop 177 → 177 px.
  • Final composition passed six direct Chromium scenarios (phone, small phone, portrait/landscape physical-inset simulation, fine-pointer mobile, desktop), plus all three classic-scrollbar scenarios. Verified symmetry, row/navigation alignment, retained masks, 8 px clearance, nonoverlapping 44 px menus, previews, Incognito, and no horizontal overflow. Insets are CDP contract simulation, not native iOS proof.
  • The first landing CI attempt exposed the 6 px gutter regression and an inherited cold-start test race. The former was reproduced at the original assertion and fixed in CSS without weakening the test. For the latter, loading is intentionally published before subscription admission and RPC dispatch; the test now awaits the actual request and retains exactly-one assertions both before resolution and after both panes render. Production chat behavior is unchanged.
  • The original startup count assertion was reproduced as 1 expected / 0 received with held admission in the bundled UI. The repaired test body passes using the E2E build/preview helper on the final head (694 ms test-body wall; 15.07 s bundle build); all six existing subscription-admission unit cases passed (11.32 s wrapper wall). No test cases, timeouts, retries, or weakened assertions were added.
  • Focused formatting/style checks, whitespace check, and fresh independent P0–P2 review passed. Exact-head hosted gates remain authoritative; previous failed/cancelled CI is not passing coverage.

Before / after

390 × 760 px, dark theme, matching mock data and state. Before is the first PR revision (366 px drawer); After is the final 336 px drawer with 8 px scrollbar clearance. The original shipping drawer was 320 px.

Before — first PR revision

Before refinement — 366 px drawer

After — final width and scrollbar clearance

After — 336 px drawer with preserved scrollbar clearance

Worked on by

  • @vyctorbrzezowski — report and design direction; co-authored in the implementation commit.

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits September 28, 2026 10:09
Widen the phone drawer, reduce stacked gutters and pinned-row insets, and remove empty metadata slots without shrinking text or 44px menu targets.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 8e0d3930-8b13-453d-823f-a05ca4a3be09
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 3:50 PM ET / 19:50 UTC (Revision 4).

ClawSweeper review

What this changes

Adjusts the Control UI mobile drawer and session-row spacing to give titles more room, adds browser layout assertions, and synchronizes an existing startup test with request dispatch.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main retains the narrow mobile drawer despite an earlier released sidebar-title improvement, and this PR addresses the remaining space constraint with credible browser proof.

Priority: P3
Reviewed head: 3dc528350c6e566f1eb7aba2a32120178cbc81f4

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused CSS changes, inspected visual evidence, quantified browser measurements, and relevant regression checks provide strong review confidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed mobile-drawer CSS was exercised in the Control UI with mock Gateway sessions at phone and desktop widths; inspected screenshots show the final layout, and the PR records improved after-fix title widths and retained menu and metadata behavior. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed mobile-drawer CSS was exercised in the Control UI with mock Gateway sessions at phone and desktop widths; inspected screenshots show the final layout, and the PR records improved after-fix title widths and retained menu and metadata behavior. No stored-data contract changes.
Evidence reviewed 7 items Current-main baseline: Current main caps the mobile drawer at 320 px and uses 16 px inner padding, leaving the reported layout constraint in place.
Introduced layout change: The pinned merge-base-to-head diff widens the mobile drawer to 336 px, reduces its padding, and conditionally removes an empty metadata slot.
Metadata rendering contract: The row renderer creates the metadata container and conditionally renders badges, participants, and child-session trails; the CSS targets that existing structure.
Findings None None.
Security None None.

How this fits together

The Control UI displays Gateway sessions in a responsive navigation sidebar. On narrow screens, that sidebar becomes a drawer whose layout divides space among titles, metadata, and menus.

flowchart LR
A[Gateway session list] --> B[Control UI session rows]
C[Viewport and safe area] --> D[Mobile drawer layout]
B --> D
D --> E[Title and metadata space]
E --> F[Visible titles and menus]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +17, Tests +22. Total +39 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 22 5 +17
Tests 2 22 0 +22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 44 5 +39

Review metrics

Metric Value Why it matters
Usable title width at 390 px 190 → 244 px (+54 px) The PR's browser measurement quantifies the intended readability improvement.

Technical review

Best possible solution:

Keep the narrower title layout while preserving safe-area bounds, scrollbar clearance, metadata visibility, desktop sizing, and 44 px menu targets.

Do we have a high-confidence way to reproduce the issue?

Yes. Current-main CSS establishes the 320 px drawer and wider inner gutters, and the PR describes a specific 390 px mock-Gateway browser measurement of the resulting title space.

Is this the best way to solve the issue?

Yes. The change uses the existing responsive CSS and row renderer, with focused checks for metadata and menu reachability.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 89c0030e4c45.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: This is a bounded mobile sidebar readability improvement without evidence of a blocked core workflow.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed mobile-drawer CSS was exercised in the Control UI with mock Gateway sessions at phone and desktop widths; inspected screenshots show the final layout, and the PR records improved after-fix title widths and retained menu and metadata behavior. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed mobile-drawer CSS was exercised in the Control UI with mock Gateway sessions at phone and desktop widths; inspected screenshots show the final layout, and the PR records improved after-fix title widths and retained menu and metadata behavior. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed mobile-drawer CSS was exercised in the Control UI with mock Gateway sessions at phone and desktop widths; inspected screenshots show the final layout, and the PR records improved after-fix title widths and retained menu and metadata behavior. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • hxy91819: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-28T10:19:48.915Z sha bc1daa7 :: needs changes before merge. :: none
  • reviewed 2026-09-28T13:31:45.448Z sha ea6ed03 :: needs changes before merge. :: none
  • reviewed 2026-09-28T17:38:00.795Z sha 7873830 :: needs maintainer review before merge. :: none

roboclaw-bot and others added 3 commits September 28, 2026 13:24
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 8d461c47-da59-46b1-9fdd-17ca2738dc31
Resolve the actual main conflict by keeping its safe-area positioning and max-width with the reviewed 336px drawer. Direct Chromium proof passed six phone, safe-inset, landscape, mouse and desktop scenarios; focused formatting/style checks and fresh independent review passed.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e2bdfc2c-f10d-4fcd-8900-fd913449dd39
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 28, 2026 17:29
roboclaw-bot and others added 3 commits September 28, 2026 19:34
Restore the existing 8px clearance without weakening layout checks. Synchronize the inherited cold-start coalescing test with its actual RPC dispatch and retain the completed-flow exactly-one assertion.

Co-authored-by: vyctorbrzezowski <[email protected]>
Preserve the current main palette and safe-area owners with the approved 336px drawer and restored 8px scrollbar clearance. Focused geometry and independent review passed.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: fd9c4666-0b9f-48df-8588-5373febfaf2a
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 28, 2026
@roboclaw-bot
roboclaw-bot merged commit dcafd64 into main Sep 28, 2026
89 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/otimizacao-do-espaco-da-sidebar-mobile branch September 28, 2026 20:30
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
* fix(ui): give mobile sidebar titles more reading space

Widen the phone drawer, reduce stacked gutters and pinned-row insets, and remove empty metadata slots without shrinking text or 44px menu targets.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): give mobile sidebar titles more reading space

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 8e0d3930-8b13-453d-823f-a05ca4a3be09

* fix(ui): give mobile sidebar titles more reading space

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 8d461c47-da59-46b1-9fdd-17ca2738dc31

* fix(ui): give mobile sidebar titles more reading space

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e2bdfc2c-f10d-4fcd-8900-fd913449dd39

* fix(ui): preserve sidebar scrollbar clearance and await startup dispatch

Restore the existing 8px clearance without weakening layout checks. Synchronize the inherited cold-start coalescing test with its actual RPC dispatch and retain the completed-flow exactly-one assertion.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): give mobile sidebar titles more reading space

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: fd9c4666-0b9f-48df-8588-5373febfaf2a

---------

Co-authored-by: vyctorbrzezowski <[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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant