Skip to content

Commit 8eef750

Browse files
PR Batch Testerclaude
andcommitted
fix(web): keep diff file name hover without an underline
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 9f07e2a commit 8eef750

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
201201
}
202202
203203
/* Pierre clips file names with overflow: hidden for its start ellipsis. A 1em line box cuts off
204-
descenders and the hover underline. Only the clipped names get room: 16px plus the header's
205-
12px of padding stays inside its 32px min-height, which diffHeaderHeight assumes. */
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. */
206206
[data-diffs-header] :is([data-title], [data-prev-name]) {
207207
line-height: 16px !important;
208208
}
@@ -229,18 +229,12 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS}
229229
230230
[data-title] {
231231
cursor: pointer;
232-
transition:
233-
color 120ms ease,
234-
text-decoration-color 120ms ease;
235-
text-decoration: underline;
236-
text-decoration-color: transparent;
237-
text-underline-offset: 2px;
232+
transition: color 120ms ease;
238233
font-family: var(--font-sans) !important;
239234
}
240235
241236
[data-title]:hover {
242237
color: color-mix(in srgb, var(--code-foreground) 84%, var(--primary)) !important;
243-
text-decoration-color: currentColor;
244238
}
245239
246240
/* Expanding a file mounts its body all at once; easing it in matches the 200ms the app's

0 commit comments

Comments
 (0)