Repository navigation
fix(bots): match Home composer's top padding to the chat composer - #51168
Conversation
|
Review status Problem: In the Bots Home comment box, when the text sits on its own row above the buttons, there were 14px between the box's top edge and the first line of text. The chat composer has 10px. Change: In that layout, when nothing sits above the text, the text now starts 10px below the top edge, the same as chat. The bottom row of buttons stays where it was. The layout where the text sits between + and send is unchanged, and so is the spacing under images, the reply chip, or a notice. Verified:
Fixed: nothing needed. Deferred: none. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Review status (update)
Fixed: nothing needed. Deferred: none. |
ELI5
When you type in the Bots Home box and the text sits on its own line above the buttons, there was more empty space above the text than in the normal chat box. Now the text starts the same distance below the box's top edge as it does in chat. The buttons along the bottom don't move.
What Changed
useBotItemCommentStackedtakes a newleadsflag (nothing above the text) and addspt-0.5/min-h-7to the stacked classes, including the under-520px container-query stack.Why
The two composers should look the same. I kept this change inside the stacked layout instead of switching the card to chat's
p-1.5. Changing the card padding would also have moved the + / send row, the single-row layout, and the thumbnails and reply chip.Linked Issue
N/A (internal report from a maintainer).
Visual Proof
These are component fixture renders at 2x in dark theme. The reported case had the 1 / 2 arrows showing, a single typed line, and a narrow box.
stackedOneLinefixture)The chat composer this matches, for reference (unchanged):
Testing
BotItemCommentBoxfixture (empty, one line, long text, narrow, pasted image, pickers, posted) and the stepper's 260px rows with 1 / 2 arrows, before and after, on Linux. The text in stacked layouts moved up 4px, the bottom row kept its distance from the bottom border, the one-row layouts didn't change, and the image-first layout didn't change.BotItemStepper:stackedOneLinecomponent fixture for the reported layout; its before/after renders are above.Performance
None, because this only changes class names that are already computed during each render.
Risk
The riskiest part is the stacked one-line layout: if the
leadsflag were wrong, text could sit 4px closer to an image or reply chip above it. The flag reads the same image, reply and notice state that renders those elements. Only the Bots Home comment composer is affected. Back out with a plain revert.Level: Low
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
This is CSS only in the renderer, so platform, remote host and mobile behavior is unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)