@devries-cameron20 / t3code Mirror · read-only / commits / ddca636540
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 04:15 UTC

fix(web): keep collapsed diff file headers reachable (#20333)

Andrei Shenets committed Oct 18, 2026 at 21:24 UTC ddca636540cf12ff596e5623181594bfa84d558c
1 file changed +5 -3
apps/web/src/components/diffs/StyledDiffCodeView.tsx
+5 -3
@@ -93,8 +93,11 @@ export const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
93 font-family: var(--font-sans) !important;
94 font-size: 12px !important;
95 line-height: 1 !important;
96 + /* Collapsed items are never remeasured: the painted header must match diffHeaderHeight.
97 + Center controls in that height instead of adding padding to their intrinsic height. */
98 + height: 32px !important;
99 min-height: 32px !important;
97 - padding-block: 6px !important;
100 + padding-block: 0 !important;
101 padding-inline: 8px 12px !important;
102 }
103
@@ -142,8 +145,7 @@ export const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
145 }
146
147 /* Pierre clips file names with overflow: hidden for its start ellipsis. A 1em line box cuts off
145 - descenders. Only the clipped names get room: 16px plus the header's 12px of padding stays
146 - inside its 32px min-height, which diffHeaderHeight assumes. */
148 + descenders; give the clipped names room inside the fixed-height header. */
149 [data-diffs-header] :is([data-title], [data-prev-name]) {
150 line-height: 16px !important;
151 }