fix(frontend): improve editor typography, heading hierarchy, sidebar sizing, and fix markdown scroll bug#3837
Draft
fix(frontend): improve editor typography, heading hierarchy, sidebar sizing, and fix markdown scroll bug#3837
Conversation
…sizing, and fix markdown scroll bug - Standardize H1-H6 heading styles with proper size hierarchy and font weights - Add bottom borders to H1/H2 headings for visual separation - Upgrade monospace font stack to include SF Mono, JetBrains Mono, Roboto Mono - Improve code block styling with better background, border-radius, and spacing - Fix markdown editor scroll-to-bottom on Enter by preserving/restoring scroll position - Fix Enter key handler to only claim handled when actually in markdown mode - Widen playground variant selector dropdown from 120px to 200px - Increase sidebar menu item height (28→32), icon size (12→14), font size (12→13)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Railway Preview Environment
Updated at 2026-02-27T10:37:24.310Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses UI/UX feedback from a user regarding editor readability, heading hierarchy, sidebar sizing, and a markdown editor scroll bug.
Changes
Editor Heading Styles (H1-H6)
text-transform: uppercaseand gray color, added bottom border — was 15px uppercase grayMonospace Font Stack
Menlo, Consolas, Monaco, monospaceto"SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, Monaco, monospaceacross all editor code blocks and inline codeCode Block Styling
Inline Code Styling
codespansMarkdown Editor Scroll Bug Fix
selection.insertRawText("\n")triggered browser auto-scroll to caret; the command handler also unconditionally returnedtrueeven for non-markdown nodes{discrete: true}for the editor update, and only returntruewhen actually handling a markdown nodePlayground Variant Selector
Sidebar Menu