Repository navigation
fix(ui): rem type scale so text is readable and follows browser font settings - #4
Merged
estebanstifli merged 3 commits intoNov 4, 2026
Conversation
Many labels, captions and status values used hard-coded 6-9px font sizes, which are hard to read at normal zoom and ignore the browser's font-size preference. Remap sub-12px sizes to an 11px floor while keeping relative order (6-7.5px -> 11px, 8-8.5px -> 11.5px, 9-11px -> 12px). Sizes of 12px and above are unchanged. The Local AI status GPU row put the device name in an inline <b>, so its text-overflow ellipsis never applied and long names (e.g. 'NVIDIA GeForce RTX 4050 Laptop GPU') ran into the free-VRAM value. Make it block-level so it truncates.
…settings Replace every px font size with nine rem tokens (--text-2xs to --text-3xl) or a rem value, so the browser's default font size scales the UI. Neighbouring sizes collapse into one step per role. Also: fixed-height controls use min-height so larger text fits; the inline segment editor sizes from 1lh; headings balance their lines; timestamps use tabular numerals; mobile text inflation is disabled; form fields on touch screens are at least 16px so iOS doesn't zoom on focus.
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
Many labels, captions and status values used hard-coded 6–9px font sizes. They are hard to read at normal zoom, and because they are in px they ignore the browser's default font-size setting. This PR replaces every px font size with a rem type scale, so the smallest text is 11px at the default setting and grows when the user picks a larger font in browser settings.
Old sizes map onto the scale like this. Neighbouring sizes share one step, so the same kind of text gets the same size:
--text-2xs(11px)--text-xs(12px)--text-sm/--text-base/--text-md(unchanged)--text-lg(17px)--text-xl(20px)--text-2xl(24px)--text-3xl(28px)clamp()clamp()bounds in rem, with a rem term in the middle value so zoom still scales itOther changes:
min-height, so larger text fits. The inline segment editor sets its height from1lh(falling back to 30px) and uses a unitless line height.<b>, sotext-overflow: ellipsisnever applied and long names ran into the free-VRAM value. It is nowdisplay: block, and the full name shows on hover (titleattribute inapp.js; the value already goes throughescapeHTML).h1–h3usetext-wrap: balance, and timestamps use tabular numerals so they don't jitter.text-size-adjust: 100%stops mobile browsers enlarging text on their own. On touch screens, form fields are at least 16px, so iOS Safari doesn't zoom in when one gets focus.Evidence
Windows 11, Chrome, dark theme, v0.9.0.
Before the change, visible text on the Transcription page used 7, 7.5, 8, 8.5, 9, 10 and 11px. After it, nothing is below 11px.
I checked Transcription, Meetings, Speakers, Prompt and Settings at 1440×900, 768×1024 and 390×844, each at the default text size and at 125% (the same as setting the browser's default font to 20px). A script looked for text cut off by
overflow: hiddenwithout an ellipsis, and for sideways page scroll; it found neither on any page. At 125%, the smallest text is 13.75px, which shows the browser setting is respected.In the GPU row, the name used to overlap the value. It now ends at x=105.6 and the value starts at x=112.6.
After:
Merge Danger
Door: two-way
Stylesheets plus a one-attribute change in
app.js. To revert, rungit revert.Blast Radius: layout
Text that was very small is now readable, so some tight boxes wrap to two lines: the sidebar subtitle and the "Local AI status" caption. A few sizes also moved slightly to fit the scale, for example 22px to 20px and 26px to 24px.
The 16px rule for form fields applies only on touch screens. It uses
!important, because component rules set smaller field sizes with higher specificity.I didn't check a live recording, a meeting page with real data, or the collapsed sidebar.
The
zoomrule for screens 1800px and wider inui-refresh.cssis unchanged.