| ... | ... | @@ -200,6 +200,13 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS} |
| 200 | 200 | line-height: 1 !important; |
| 201 | 201 | } |
| 202 | 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 | |
| 203 | 210 | [data-diffs-header] [data-metadata] { |
| 204 | 211 | align-items: center !important; |
| 205 | 212 | line-height: 1 !important; |
| ... | ... | @@ -222,18 +229,12 @@ const DIFF_VIEW_UNSAFE_CSS = `${DIFF_SURFACE_THEME_UNSAFE_CSS} |
| 222 | 229 | |
| 223 | 230 | [data-title] { |
| 224 | 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; |
| 231 | 233 | font-family: var(--font-sans) !important; |
| 232 | 234 | } |
| 233 | 235 | |
| 234 | 236 | [data-title]:hover { |
| 235 | 237 | color: color-mix(in srgb, var(--code-foreground) 84%, var(--primary)) !important; |
| 236 | | text-decoration-color: currentColor; |
| 237 | 238 | } |
| 238 | 239 | |
| 239 | 240 | /* Expanding a file mounts its body all at once; easing it in matches the 200ms the app's |