Follow-up to the already-merged #167 fixes (PRs #190/#192/#193 + remote fix-167 2149fcc).
The mobile media query overrides .code font-size to 13px but left the gutter rows at the desktop metric, so on narrow viewports blank gutter rows stacked taller than code rows and every number drifted off its wrapped line start.
Blank gutter rows now take an explicit height matching the code line-height: calc(var(--code-fs) * var(--code-lh)) on desktop, calc(13px * 1.7) under the 640px media query.
Verified in headless chromium (stdlib CDP) at 375x812 and 1200x900:
wrapped long lines: gutter count == visual row count, numbers 1..n at each line start, per-row alignment < 2px, no horizontal scroll
wrap off / toggle on+off / short paste: unchanged behavior
Follow-up to the already-merged #167 fixes (PRs #190/#192/#193 + remote fix-167 2149fcc).
The mobile media query overrides `.code` font-size to 13px but left the gutter rows at the desktop metric, so on narrow viewports blank gutter rows stacked taller than code rows and every number drifted off its wrapped line start.
- Blank gutter rows now take an explicit height matching the code line-height: `calc(var(--code-fs) * var(--code-lh))` on desktop, `calc(13px * 1.7)` under the 640px media query.
Verified in headless chromium (stdlib CDP) at 375x812 and 1200x900:
- wrapped long lines: gutter count == visual row count, numbers 1..n at each line start, per-row alignment < 2px, no horizontal scroll
- wrap off / toggle on+off / short paste: unchanged behavior
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follow-up to the already-merged #167 fixes (PRs #190/#192/#193 + remote fix-167
2149fcc).The mobile media query overrides
.codefont-size to 13px but left the gutter rows at the desktop metric, so on narrow viewports blank gutter rows stacked taller than code rows and every number drifted off its wrapped line start.calc(var(--code-fs) * var(--code-lh))on desktop,calc(13px * 1.7)under the 640px media query.Verified in headless chromium (stdlib CDP) at 375x812 and 1200x900:
fen referenced this pull request2026-09-10 17:13:14 +00:00
Pull request closed