Open
Conversation
Use CSS clamp() on root font-size to scale the entire UI proportionally from 14px (at 1024px viewport) to 16px (at 1920px viewport). This makes the UI more comfortable on 13-15" MacBook screens while keeping 27" 2K displays unchanged. Also fixes hardcoded px values (pt-[64px], calc(100vh-64px)) that should be rem-relative to stay in sync with the navbar height when scaling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
@rohan-chaturvedi This is a possible alternative to #668 which doesn't break the UI. LMK thoughts |
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
clamp()on the rootfont-sizethat scales the entire UI from 14px (at 1024px viewport) to 16px (at 1920px viewport). Since all sizing usesremvia Tailwind, this proportionally scales fonts, buttons, padding, sidebar, navbar — everything.pxvalues (pt-[64px],calc(100vh-64px)) that caused layout misalignment when the root font-size changes, replacing them with theirremequivalents (pt-16,calc(100vh-4rem)).Test plan
🤖 Generated with Claude Code