From 5ab9c2c191eb2c23e5037a1373107b122fc01515 Mon Sep 17 00:00:00 2001 From: Ciinz-04 Date: Thu, 1 Oct 2026 00:56:03 +0800 Subject: [PATCH] Inherit the editor font in the highlight overlay (macOS) The element inside #editor-highlight took font-family: monospace from the user-agent stylesheet instead of the stack set on the overlay. On macOS that is a different font from the text area's ui-monospace, and its taller line box moved the painted text away from the caret a little more on every line. --- web/styles.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/styles.css b/web/styles.css index f0a45982..3deba18f 100644 --- a/web/styles.css +++ b/web/styles.css @@ -865,6 +865,10 @@ p { overflow: hidden; } +#editor-highlight code { + font: inherit; + } + #editor-lines { position: absolute; inset: 0 auto 0 0;