From 100f7d2c7a5fb7f6a445fadff2074d2847c353f0 Mon Sep 17 00:00:00 2001 From: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co> Date: Sun, 14 Jun 2026 23:47:26 -0700 Subject: [PATCH] fix(desktop): convert DiffViewer.css font-size px to rem for zoom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DiffViewer renders in the message/timeline path via DiffMessage.tsx, so its 3 px font-size rules (.diff, .buzz-diff-gutter, .diff-decoration-content) stayed frozen against Cmd +/- zoom — the same bug class the rem sweep targets. These sat outside the text-[Npx] Tailwind-literal scope (plain CSS) and aren't caught by #1052's px-guard, which scopes CSS to globals.css only. Convert 1:1 with zero pixel shift: 12px -> 0.75rem, 11px -> 0.6875rem. Keeps the app-wide sweep honest. Co-authored-by: Taylor Ho Signed-off-by: Taylor Ho --- desktop/src/features/messages/ui/DiffViewer.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/src/features/messages/ui/DiffViewer.css b/desktop/src/features/messages/ui/DiffViewer.css index d6747173dd..dcc97fb788 100644 --- a/desktop/src/features/messages/ui/DiffViewer.css +++ b/desktop/src/features/messages/ui/DiffViewer.css @@ -52,7 +52,7 @@ } .buzz-diff-theme .diff { - font-size: 12px; + font-size: 0.75rem; } .buzz-diff-theme .diff td { @@ -68,7 +68,7 @@ padding: 0.125rem 0.5rem; border-right: 1px solid hsl(var(--border) / 0.65); color: hsl(var(--muted-foreground)); - font-size: 11px; + font-size: 0.6875rem; } .buzz-diff-theme .buzz-diff-code { @@ -86,7 +86,7 @@ padding: 0.2rem 0.75rem; background: hsl(var(--muted) / 0.35); color: hsl(var(--muted-foreground)); - font-size: 11px; + font-size: 0.6875rem; } .buzz-diff-theme .diff-gutter-omit::before {