Repository navigation
fix(ui): phone account menu truncates Help, blanks the avatar and scrolls - #189747
Conversation
…olls Give the account menu one 26 px leading column, let its height follow the 40 px phone rows, show initials while the photo loads, and keep one avatar node when menu entries rebuild on Gateway updates.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe PR aligns account-menu labels, removes unnecessary scrolling, shows pending-photo initials, and preserves the avatar across menu updates. Example: Open the account menu at a 390 px phone viewport.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides a focused repair for the phone account menu, and no introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI sidebar projects account and Gateway state into the shared Solid Menu and avatar components, producing account actions, identity presentation, and Help links. flowchart LR
A[Gateway account state] --> B[Sidebar projections]
B --> C[Identity menu]
C --> D[Shared Menu]
C --> E[Shared avatar renderer]
D --> F[Account actions and Help links]
Technical reviewBest possible solution: Keep the existing menu and avatar owners while giving account rows consistent geometry, viewport-bounded height, recognizable pending identity, and stable avatar lifetime. Do we have a high-confidence way to reproduce the issue? Source inspection and supplied before screenshots establish the layout failure; the PR also reports red-on-base regressions for pending initials and avatar replacement, without claiming a reproduced physical-device flash. Is this the best way to solve the issue? The patch is the smallest complete repair using existing owners: remove the Help wrapper, unify the leading column, relax the inherited height cap, extend the account placeholder exception, and construct the avatar once. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e67e538d68ac. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -3, Tests +82. Total +79 across 6 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 4:48 PM ET / 20:48 UTC. |
|
Merged via squash auto-merge.
|
…olls (openclaw#189747) * fix(ui): phone account menu truncates Help, blanks the avatar and scrolls Give the account menu one 26 px leading column, let its height follow the 40 px phone rows, show initials while the photo loads, and keep one avatar node when menu entries rebuild on Gateway updates. * test(ui): exercise account menu with ordinary touch input
What Problem This Solves
Fixes: on a phone, the account menu opened from the rail avatar shows "Help" as "H…" in Safari, shows an empty circle instead of the profile photo, starts labels on three different x positions, and scrolls by a few pixels.
User Impact
User impact: the phone account menu shows its full labels on one axis without scrolling at normal phone heights. While the photo loads, the header shows the same initials as the rail. The header avatar is no longer replaced when Gateway updates reach an open menu.
Why This Change Was Made
.nav-item__iconkeptflex: 0 0 20px. WebKit sized Help's wrapper from the 16 px and laid it out with the 20 px, leaving the label 4 px short. The menu now has one 26 px leading column, sized the same way in both engines, and Help's icon and label sit directly in the row.--menu-item-height(40 px on phones), which took the content to 427 px against this menu's fixed 420 px limit. This menu is now limited by the viewport height instead. Surface and row heights are unchanged. It still scrolls when the viewport is shorter than its content, such as a phone in landscape.itemsmemo built the avatar inside each rebuild, so every rebuild created a new avatar and image. It is now created once, like the menu's separators.The empty circle and the avatar replacement both predate #188283 and #189428.
Evidence
Everything below is emulated, at 390 px with iPhone 13 emulation in Playwright WebKit, using tap input and a synthetic photo served at the mock layer. It has not been run on a real iPhone.
Blink
mainby holding the photo request: menudata-avatar-state="pending", contents hidden, rail shows initials. Fixed here, see the images below.<img>reuses the cached image.avatarUser/profileViewernew objectsprofileViewerobject on every rebuild. With one avatar node, the new objects update its props and the image stays.data-avatar-stateflips and opacitymain, including with a 4000 × 4000 photo. A blank shorter than 40 ms would not show, and iOS Safari may decode more slowly.backdrop-filterrepainting over a scrollerThe empty circle matches the reported screenshot. Whether repeated replacement is the "blinking" seen on the device still needs a check on an iPhone.
Avatars mounted per event in an open menu, WebKit (the first mount on open is not counted):
maintick,health,heartbeat,presence(another user),sessions.changedupdate.available(set, then cleared)users.prefs.changedThe sampler reads once per frame, so the reconnect row is a lower bound: the instrumented run logged 27 rebuilds across that reconnect.
Layout
mainWebKitAbsolutely, WebKit
Photo still loading, WebKit
CRT and Beacon, WebKit, after
Chromium, after
Checks
tsgo:ui,ui:check-performance:base(total CSS gzip -18 B, raw +7 B).app-sidebar.people,app-sidebar-embedder-gateways,control-theme.browser,theme-mode-toggle.browser.sidebar-account-footer,native-desktop-gateways,sidebar-shortcut-badges,sidebar-name-marquee.Known gaps
mainand this branch, so the submenu was not captured on a phone.