Commit dd7404e
Fix sticky header in diff view (go-gitea#23554)
Ressurection of go-gitea#23549.
Fix regression go-gitea#23513 (comment) from go-gitea#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 1a97a84 commit dd7404e
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1611 | 1611 | | |
1612 | 1612 | | |
1613 | 1613 | | |
| 1614 | + | |
1614 | 1615 | | |
1615 | 1616 | | |
1616 | 1617 | | |
1617 | 1618 | | |
1618 | 1619 | | |
1619 | 1620 | | |
| 1621 | + | |
1620 | 1622 | | |
1621 | 1623 | | |
1622 | 1624 | | |
| |||
1630 | 1632 | | |
1631 | 1633 | | |
1632 | 1634 | | |
1633 | | - | |
| 1635 | + | |
1634 | 1636 | | |
1635 | 1637 | | |
1636 | 1638 | | |
| |||
3318 | 3320 | | |
3319 | 3321 | | |
3320 | 3322 | | |
3321 | | - | |
| 3323 | + | |
3322 | 3324 | | |
3323 | 3325 | | |
3324 | 3326 | | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
3325 | 3333 | | |
3326 | 3334 | | |
3327 | 3335 | | |
| |||
0 commit comments