Repository navigation
docs(website): Separate the dark editor bar and tighten DiffEditor padding - #4177
Conversation
After the chrome restyle, dark mode gave the editor tabs and the Live Preview header the same grey, so the two sides ran together. The editor column's bars now sit a step above the code, darker than the neutral preview headers, so the split reads from tone alone with no divider. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KR7TVj44kxYCnGtVXVkx3f
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Side-by-side Monaco forces a glyph margin on the original pane, which pushed both panes' code about 30px in. Turn it off after mount so code starts 13px from the edge, and give the diff 10px above the first line to match the 10px below the last. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KR7TVj44kxYCnGtVXVkx3f
|
Staff engineer (Cursor agent): LGTM at What I checked:
Optional FOLLOW_UP, not blocking:
|
…der-proof The dark editor override now matches any .playgroundTextEdit under a non-endpoint container, so a wrapper element can't leak it into the endpoint playground. The diff top padding outranks the standalone rule instead of relying on file order. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KR7TVj44kxYCnGtVXVkx3f
|
Both optional follow-ups are folded in at d0b1472.
Measured again in dark mode: the homepage editor bar resolves to Generated by Claude Code |
Requested by Nathaniel · project thread
Before: after #4174, dark mode gave the editor tab bars and the Live Preview header the same neutral grey, so the code side and the preview side ran together. In the Before/After DiffEditor, code sat about 32px in from the left edge, and there was more space above the first line than below the last.
After: in dark mode the editor column's bars sit one step above the code, darker than the neutral preview headers, so the two sides read apart from tone alone, with no divider line. Diff code now starts about 13px in from the edge, and there are 10px above and below. Light mode and the endpoint playground are unchanged.
How: a dark-only override of
--pg-barand--pg-tab-hover-bg, scoped to.playgroundTextEditoutside.endpointPlayground. Side-by-side Monaco forces a glyph margin on the original pane, soDiffEditorMonacoturns it off after mount; the Before/After labels still align because they read each pane'scontentLeft.🤖 Generated with Claude Code
https://claude.ai/code/session_01KR7TVj44kxYCnGtVXVkx3f
Note
Low Risk
Visual-only playground and Monaco diff styling; no API, auth, or data handling changes.
Overview
Dark mode playground chrome now uses darker
--pg-barand tab-hover colors on the editor column only (.playgroundTextEdit, excluding endpoint playgrounds), so the code side reads apart from neutral Live Preview headers without a divider. Light mode and endpoint playgrounds are unchanged.Before/After diff layout turns off Monaco’s glyph margin on the original pane after mount so side-by-side code isn’t pushed ~32px inward; label alignment still uses each pane’s
contentLeft. Standalone diff views get 10px top padding above the editor (via.diffLabels + .playgroundEditor) to match spacing below the last line.Reviewed by Cursor Bugbot for commit d0b1472. Bugbot is set up for automated code reviews on this repo. Configure here.