mirror of
https://github.com/block/buzz.git
synced 2026-10-31 06:21:34 +00:00
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:
parent
2951bf5351
commit
100f7d2c7a
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user