Repository navigation
fix(ui): size localized sidebar Send controls without overlap - #18474
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
whitespace-nowrapon the send-target button — addswhitespace-nowrapto the button class list so CJK labels (e.g.보내기,发送,送信) render on one line instead of breaking per-character inside the fixedh-5control.- Regression assertion — extends the existing "eligible send-target" test to assert the
whitespace-nowraptoken is present.
The change is minimal, idiomatic Tailwind, and correctly scoped to the single absolutely-positioned button. The new assertion is meaningful rather than tautological: for this render path DashboardAgentRowMessage emits no whitespace-nowrap token, so the assertion genuinely pins the button's class and will fail if the class is dropped.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
No actionable comments were generated in the recent review.
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title "fix(ui): size localized sidebar Send controls without overlap" matches the main change. The diff sizes the localized Send button and label in the sidebar agent rows so the label stays on on… | |
| Description check | The description is thorough and mostly complete against the template. It covers the user-facing problem (Korean Send label wrapping in the 20px control), the mechanism (keep the label on one line, res… | |
| Linked Issues check | Issue #18473 requires localized sidebar Send target labels to stay on one line and avoid vertical or horizontal overflow at minimum and default sidebar widths. At head 655a1cf, DashboardAgentRowTraili… |
|
| Out of Scope Changes check | All changed code supports the send-target sizing objective of #18473. The trailing-controls file changes the send-target button class list and the trailing slot width rules. It removes absolute positi… |
Full details: Title check
-
Explanation
The title "fix(ui): size localized sidebar Send controls without overlap" matches the main change. The diff sizes the localized Send button and label in the sidebar agent rows so the label stays on one line and does not overlap neighboring content. The title is specific and describes the primary fix, so it passes.
Full details: Description check
-
Explanation
The description is thorough and mostly complete against the template. It covers the user-facing problem (Korean Send label wrapping in the 20px control), the mechanism (keep the label on one line, reserve the button width through the existing flex slot, and reuse the normal-flow layout), and the reason for the refinement over the nowrap-only patch. It includes a Testing section with validation details and a Before/After visual table. It has a linked issue (Fixes
#18473) and states that no backend or wire changes were made. Gaps: the Testing checklist boxes are unchecked, the AI Disclosure section is left blank (it applies only to non-team contributors), and the Agent skill upstream boundary checkbox is unchecked. The Review and Notes sections are not filled in. These are non-critical gaps, so the description passes.
Full details: Linked Issues check
-
Explanation
Issue
#18473requires localized sidebar Send target labels to stay on one line and avoid vertical or horizontal overflow at minimum and default sidebar widths. At head 655a1cf, DashboardAgentRowTrailingControls.tsx gives the send-target buttonwhitespace-nowrapandh-5. The label cannot break between CJK characters or between words. The button no longer usesabsolutepositioning. It is now in normal flow inside the trailing-controls flex span. When a child disclosure exists, the span keepsgap-1. When no disclosure exists and a send target is active, the span usesmin-w-12, so the slot grows to at least the button width. This removes the overlap with the neighboring label described in the issue. DashboardAgentRow.tsx appliesmin-w-0to the model badge only whensendTargetStatusiseligibleorsending. Outside send mode the badge keepsmax-w-24 shrink-0, and its rendered class order matches main. The test change in DashboardAgentRow.test.tsx removes theabsoluteandw-12expectations and keeps theh-5expectation. The author reports rendered checks at 220px and 280px across seven locales. I did not re-run those checks. The code evidence supports the requirement.
Full details: Out of Scope Changes check
-
Explanation
All changed code supports the send-target sizing objective of
#18473. The trailing-controls file changes the send-target button class list and the trailing slot width rules. It removes absolute positioning and the disclosure-only static override, and it addswhitespace-nowrap. The row file changes the model badge shrink class only when a send target is active. The follow-up commits restored the badge's non-send class order to match main. The test file changes only the expected classes for the eligible send-target button. Event handlers, disabled state, colors, and locale catalogs are not changed in the reviewed diff. The PR reports no wire, backend, or workspace-model changes, and the reviewed diff for the three files shows none. No unrelated change is present.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
- Keep localized send-target labels on one line inside the fixed-height sidebar control. Add a regression assertion for the nowrap utility.
035a03c to
b288aec
Compare
|
Keep Send labels on one line and size their flex slot to the button. Share remaining task/model space while selecting a send target so longer translations cannot obscure the primary label. Co-authored-by: hwantage <[email protected]>
The badge keeps its natural width and only shrinks when the in-flow Send button would otherwise overflow the row, instead of splitting the row with the task label.
|
Maintainer follow-up (28b2653): merged current main and reverted the model badge's send-mode |
|
Follow-up 655a1cf: kept the badge's class order identical to main outside send mode. CI flagged an exact-markup snapshot in subagent-child-row-fallback-pixels.test.tsx, and outside send mode the rendered markup now matches main byte for byte. Sidebar and dashboard suites pass locally (439 files). |

Localized sidebar Send labels can wrap into two lines inside the 20px control. This was reproduced on current main with Korean at both the minimum 220px and default 280px sidebar widths.
Keep the label on one line and let its existing flex slot reserve the actual button width. Reuse the normal-flow layout already used by rows with child controls. The model badge keeps its prior natural width (max 96px); during send-target selection it may shrink only when the in-flow Send button would otherwise overflow the row (220px sidebar with a long model id or a long label such as French). Existing event handlers, disabled state, colors and row/button heights remain.
Based on @hwantage’s original fix in #18474; original commit
b288aec0e06080051a79481b03ef4193861f0d32is preserved in branch ancestry. The nowrap-only patch leaves the button outside its fixed 48px reservation and overlaps the neighboring label by 2.4375px; this refinement restores a 6px gap.Fixes #18473.
Validation:
The renderer fixture uses the real row, controls, translations, CSS and fonts, with synthetic row props/callbacks and conversation-title lookup stubbed. It does not exercise backend sends or the full diff-note workflow. Native Windows/Linux font rendering, physical mobile and the full web typecheck were not run. No wire, backend or workspace-model changes.
Before and after (Korean, 220px and 280px):