Skip to content

Commit 7c6b0e8

Browse files
committed
fix(web): stop clipping descenders in diff file headers
Pierre filename ellipsis uses overflow:hidden. line-height 1 made that box 12px tall, so g/p/y in paths got chopped. 16px still fits the 32px virtualizer slot. Grok 4.6 / pi
1 parent 9b2d043 commit 7c6b0e8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/web/src/components/diffs/StyledDiffCodeView.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
8484
align-items: center !important;
8585
font-family: var(--font-sans) !important;
8686
font-size: 12px !important;
87-
line-height: 1 !important;
87+
line-height: 16px !important;
8888
min-height: 32px !important;
8989
padding-block: 6px !important;
9090
padding-inline: 8px 12px !important;
@@ -196,12 +196,12 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
196196
197197
[data-diffs-header] [data-header-content] {
198198
align-items: center !important;
199-
line-height: 1 !important;
199+
line-height: 16px !important;
200200
}
201201
202202
[data-diffs-header] [data-metadata] {
203203
align-items: center !important;
204-
line-height: 1 !important;
204+
line-height: 16px !important;
205205
font-variant-numeric: tabular-nums;
206206
}
207207
@@ -210,7 +210,7 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
210210
font-family: var(--font-mono) !important;
211211
font-size: 11px !important;
212212
font-variant-numeric: tabular-nums;
213-
line-height: 1 !important;
213+
line-height: 16px !important;
214214
}
215215
216216
[data-diffs-header] [data-change-icon],

0 commit comments

Comments
 (0)