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, 21:45 UTC
fix(web): stop clipping the bottoms of diff file names (#14375)
shivam committed
Sep 30, 2026 at 12:35 UTC
c18e5ea6ed741443a8ec4a5d22d4b6939b0ecd21
1 file changed
+8
-7
apps/web/src/components/diffs/StyledDiffCodeView.tsx
+8
-7
@@ -200,6 +200,13 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
200
line-height: 1 !important;
201
}
202
203
+/* Pierre clips file names with overflow: hidden for its start ellipsis. A 1em line box cuts off
204
+ descenders. Only the clipped names get room: 16px plus the header's 12px of padding stays
205
+ inside its 32px min-height, which diffHeaderHeight assumes. */
206
+[data-diffs-header] :is([data-title], [data-prev-name]) {
207
+ line-height: 16px !important;
208
+}
209
+
210
[data-diffs-header] [data-metadata] {
211
align-items: center !important;
212
line-height: 1 !important;
@@ -222,18 +229,12 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
229
230
[data-title] {
231
cursor: pointer;
225
- transition:
226
- color 120ms ease,
227
- text-decoration-color 120ms ease;
228
- text-decoration: underline;
229
- text-decoration-color: transparent;
230
- text-underline-offset: 2px;
232
+ transition: color 120ms ease;
233
font-family: var(--font-sans) !important;
234
}
235
236
[data-title]:hover {
237
color: color-mix(in srgb, var(--code-foreground) 84%, var(--primary)) !important;
236
- text-decoration-color: currentColor;
238
}
239
240
/* Expanding a file mounts its body all at once; easing it in matches the 200ms the app's