fix(desktop): convert DiffViewer.css font-size px to rem for zoom

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 <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w
2026-06-14 23:47:26 -07:00
parent 2951bf5351
commit 100f7d2c7a

View File

@@ -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 {