Repository navigation
fix: tighten spacing above sidebar file previews - #147116
Conversation
|
🦞👀 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. Reviewed September 13, 2026, 11:40 AM ET / 15:40 UTC (Revision 3). ClawSweeper reviewWhat this changesRemoves extra space above sidebar text-attachment previews and refreshes the measured startup JavaScript budget baseline. Merge readiness✅ Ready for maintainer review The spacing improvement remains useful on current main, and the inspected screenshots demonstrate the intended result. No actionable patch defects were found; this maintainer-owned PR should remain open for the normal merge process. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI renders opened chat attachments in a sidebar with file controls and a document reader. Its stylesheet controls the spacing between the sidebar tabs, toolbar, and preview. flowchart TD
A[Open chat attachment] --> B[Sidebar attachment renderer]
B --> C{File toolbar present?}
C -->|Yes| D[Remove outer top padding]
C -->|No| E[Keep standard padding]
D --> F[Display controls and preview]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Other 0. Total +4 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the spacing adjustment in the existing sidebar stylesheet and retain the measured baseline with unchanged budget allowances. Do we have a high-confidence way to reproduce the issue? Not applicable as a functional defect reproduction: this is visual polish, and the supplied before/after captures directly demonstrate the spacing difference. Is this the best way to solve the issue? Yes. A conditional rule in the existing stylesheet addresses the extra spacing without changing the reader, other sidebar content, or stored settings. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f765199d9ca5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* fix: tighten spacing above sidebar file previews * chore(ui): refresh measured startup size baseline
What Problem This Solves
Fixes excessive empty space below the chat side-panel tabs when opening a text attachment.
User Impact
File metadata and the document preview sit 16 px closer to the tabs, while the document's reading margins stay unchanged.
Why This Change Was Made
The sidebar's 16 px top padding was stacking with the file toolbar's own spacing. Remove that outer top padding only when the sidebar contains a file toolbar.
Refresh the startup JavaScript size baseline to the independently measured main value of 355,740 B to repair an existing CI failure. The 358,400 B hard cap and the 512 B growth / 64 B build-variance allowances remain unchanged.
Evidence
git diff --checkpass.The captures below use the running Control UI with its synthetic
notes.mdattachment fixture. Before restores the original 16 px top padding; after uses the changed source stylesheet.The initial CI run reproduced an existing startup-JavaScript budget failure: the base main run measures 355,740 B gzip against a 355,719 B limit; this PR run measures 355,769 B. Both contain 1,153,709 B raw startup JavaScript. The 29 B gzip difference is within the existing 64 B build-variance allowance; startup CSS is unchanged at 46,117 B.