Repository navigation
fix(web): subagent bar text no longer crowds the right edge - #41909
Caisusandy wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
When a subagent is open in its parent's right panel, the bar at the bottom has no "Open parent" button, so "Runs on its own" is the last thing in it. The text sits 8px from the right edge while the left side has 20px. Expected: the same inset on both sides.
Steps: open a subagent in the parent thread's right panel, with the panel wide enough (over 640px) to show "Runs on its own". Found while using the Windows desktop nightly.
Change
ReadOnlyComposerBarusedps-5 pe-2, and the 8px is meant for a trailing button, which has its own padding. The bar now uses 20px on both sides and keeps 8px on the right only when it holds a button (has-[>button]:pe-2).Linked threads share this bar. They always show a button, so they look the same as before. Mobile has its own bar and is not touched.
Scope
Small fix for an obvious visual bug, so there is no issue. I found no PR that fixes this. #28839 edits the same class string for font size but keeps
ps-5 pe-2, so whichever lands second gets a one-line conflict.Verification
I rendered the real
ChatViewin Chromium with a temporary copy of the existing "a subagent tab shows its read-only bar" browser test (panel maximized, fake environment, not committed), onmainat e632155 and with this change.Subagent in the right panel, no button. Before: 8px on the right.
After: 20px on both sides.
Subagent's own page, with "Open parent". Unchanged. Before:
After:
Format, lint, typecheck, React Compiler coverage and both knip checks pass. Knip ran with
KNIP_DISABLE_RAW_TRANSFER=1, because its default mode ran out of memory on my machine, with or without this change. I did not check this in the packaged desktop app.Written and verified with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code