From 83b169d99133f1abd48ce1bb4f1a68c08c7b9ea1 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Mon, 5 Oct 2026 09:43:08 +0200 Subject: [PATCH] fix: Chrome draws the popup in its monospace font (closes #418) Chrome adds a stylesheet of its own to extension pages that sets the font on body. Tailwind 4 puts its classes in a cascade layer, and a rule outside any layer wins over them, so font-mono lost and Chrome drew the popup in the system font. body now carries font-mono!, which marks the class important. Both end-to-end suites check the popup's font. The same stylesheet also makes Chrome draw the popup's text at 12px rather than text-sm's 14px; that is unchanged here and filed as issue 456. Model: opus-5-5 --- TODO.md | 10 ++++++++++ src/popup/index.html | 5 ++++- tests/e2e/firefox/run.js | 14 ++++++++++++++ tests/e2e/run.js | 14 ++++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 73b5b7b..5b8e533 100644 --- a/TODO.md +++ b/TODO.md @@ -45,6 +45,16 @@ but the review is broader than any of them. # Completed Steps +- 2026-10-05: Chrome draws the popup in its monospace font + ([#418](https://git.eeqj.de/sneak/AutistMask/issues/418)), as Firefox does. + Chrome adds a stylesheet of its own to extension pages that sets the font on + `body`, and it beat Tailwind's `font-mono`: Tailwind 4 puts its classes in a + cascade layer, and a rule outside any layer wins over them. `body` now carries + `font-mono!`, which marks the class important. Both end-to-end suites check + the popup's font. The same stylesheet also makes Chrome draw the popup's text + at 12px rather than the 14px `text-sm` asks for; that is unchanged, and filed + as [#456](https://git.eeqj.de/sneak/AutistMask/issues/456). + - 2026-10-05: Dead code removed and copied view helpers shared ([#168](https://git.eeqj.de/sneak/AutistMask/issues/168)). AddressDetail and AddressToken each defined their own `isoDate()` and `timeAgo()` in place of diff --git a/src/popup/index.html b/src/popup/index.html index d318b67..3019c8a 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -6,7 +6,10 @@