Commit 9efcce5
authored
Fix sticky header in diff view (#23554)
Ressurection of #23549.
Fix regression #23513 (comment) from #23271.
The previous sticky CSS did assume the content is always 2 rows, but since that PR, it's single-row above 993px width.
Adjust the sticky offset to match and add a small tweak that hides content behind the `border-radius`.
Single row:
<img width="1264" alt="Screenshot 2023-03-17 at 21 33 05"
src="https://user-images.githubusercontent.com/115237/226034050-a04b131d-fd3f-45c0-bc72-413738a59825.png">
Double row:
<img width="1243" alt="Screenshot 2023-03-17 at 21 32 53"
src="https://user-images.githubusercontent.com/115237/226034163-2f1c6aa9-fc72-432f-bc46-9a7119da8677.png">1 parent 27fcfae commit 9efcce5
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1615 | 1615 | | |
1616 | 1616 | | |
1617 | 1617 | | |
| 1618 | + | |
1618 | 1619 | | |
1619 | 1620 | | |
1620 | 1621 | | |
1621 | 1622 | | |
1622 | 1623 | | |
1623 | 1624 | | |
| 1625 | + | |
1624 | 1626 | | |
1625 | 1627 | | |
1626 | 1628 | | |
| |||
1634 | 1636 | | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | | - | |
| 1639 | + | |
1638 | 1640 | | |
1639 | 1641 | | |
1640 | 1642 | | |
| |||
3322 | 3324 | | |
3323 | 3325 | | |
3324 | 3326 | | |
3325 | | - | |
| 3327 | + | |
3326 | 3328 | | |
3327 | 3329 | | |
3328 | 3330 | | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
3329 | 3337 | | |
3330 | 3338 | | |
3331 | 3339 | | |
| |||
0 commit comments