Repository navigation
fix(ui): schedule unit pickers overflow their cells at phone widths - #123175
Conversation
The phone-width ellipsis fix (#123085) promoted a chat-composer-scoped 138px minimum onto the shared select-picker inline style, which beats every consumer stylesheet. Containers that legitimately shrink below 138px overflow instead: the cron 'Every N <unit>' and stagger-window unit pickers spill out of their minmax(0,1fr) grid cells at 320px, and workboard's min-width:0 became dead. Cap the floor at the host width with min(138px,100%); the readable-label floor is preserved everywhere the container is wide enough (the mobile e2e asserts it at 364px). Also fix the stale '8ch' comment from the pre-138px iteration.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 10:18 PM ET / August 14, 2026, 02:18 UTC. ClawSweeper reviewWhat this changesThis PR caps the shared web UI select picker’s 138px readable-label minimum at its host width and adds a regression test for narrow containers. Merge readinessKeep open for maintainer review: the supplied diff is a focused UI repair, but the read-only shell failed before current-main, scoped-policy, history, and Web Awesome contract checks could be completed. Priority: P2 Review scores
Verification
How this fits togetherThe web UI renders shared select controls in chat and automation forms. Each form supplies available width; the picker’s inline size then controls the Web Awesome select trigger and dropdown layout. flowchart LR
A[Chat and automation forms] --> B[Shared select picker]
B --> C[Inline width rule]
C --> D[Web Awesome select trigger]
D --> E[Picker and dropdown layout]
Decision needed
Why: The supplied patch is plausible, but the required local evidence pass could not run in this review environment. Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +23. Total +24 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Review the exact head against current shared-picker consumers and confirm a phone-width schedule form no longer overflows while chat pickers retain their readable labels. Do we have a high-confidence way to reproduce the issue? Unclear: the PR body describes a 320px schedule-layout failure, but the review shell could not inspect or run the current UI path. Is this the best way to solve the issue? Unclear: changing the shared picker is a plausible owner-boundary repair, but direct consumer and Web Awesome sizing-contract checks remain unavailable. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 941b5240c63b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…nclaw#123175) The phone-width ellipsis fix (openclaw#123085) promoted a chat-composer-scoped 138px minimum onto the shared select-picker inline style, which beats every consumer stylesheet. Containers that legitimately shrink below 138px overflow instead: the cron 'Every N <unit>' and stagger-window unit pickers spill out of their minmax(0,1fr) grid cells at 320px, and workboard's min-width:0 became dead. Cap the floor at the host width with min(138px,100%); the readable-label floor is preserved everywhere the container is wide enough (the mobile e2e asserts it at 364px). Also fix the stale '8ch' comment from the pre-138px iteration.
What Problem This Solves
Fixes an issue where users on phone-width screens (~320px) editing an automation schedule ("Every N " or stagger window) would see the unit picker overflow its grid cell, clipping/overlapping the adjacent number input. Any other narrow picker container (workboard's
min-width: 0rule is now dead) has the same latent overflow.Why This Change Was Made
#123085 fixed real ellipsis-collapse in the chat composer and new-session pickers by promoting a 138px minimum onto the shared
select-pickercomponent — but as an inline style, which beats every consumer stylesheet. The cron form'sminmax(0,1fr)grid columns resolve to ~125-135px at 320px viewport; an unconditional floor forces overflow.min-width:min(138px,100%)keeps the readable-label floor wherever the container is wide enough and never exceeds the host. The mobile picker e2e added by #123085 (which asserts readable labels at 364px viewport) still passes because 100% > 138px there. Also fixes the stale "keep 8ch" comment left from the pre-138px iteration.User Impact
Automation schedule editors on phones no longer clip; chat composer/new-session pickers keep their readable-label floor unchanged.
Evidence
ui/src/e2e/new-session-page.workspace-memory.e2e.test.ts(the fix: picker option labels collapse to ellipsis at phone widths #123085 regression suite incl. mobile readable-label assertions): 13 passed.ui/src/pages/chat/chat-responsive.browser.test.ts: 86 passed.ui/src/components/select-picker.test.tspins the capped inline floor.