mirror of
1
Fork 0
forgejo/web_src/css
Giteabot f5a98b0f5b
Fix sticky header in diff view (#23554) (#23568)
Backport #23554 by @silverwind

Ressurection of #23549.

Fix regression
https://github.com/go-gitea/gitea/pull/23513#issuecomment-1474356817
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">

Co-authored-by: silverwind <me@silverwind.io>
2023-03-19 01:29:16 +01:00
..
chroma Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
code Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
codemirror Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
console Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
features Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
markup Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
modules Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
shared Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
standalone Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
themes Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
admin.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
animations.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
base.css Increase horizontal page padding (#23507) (#23537) 2023-03-17 21:01:47 +08:00
dashboard.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
editor.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
explore.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
font_i18n.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
form.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
helpers.css Fix review comment context menu clipped bug (#23523) (#23543) 2023-03-17 14:00:17 -04:00
home.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
index.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
install.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
organization.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
package.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
repository.css Fix sticky header in diff view (#23554) (#23568) 2023-03-19 01:29:16 +01:00
review.css Fix diff detail buttons wrapping, use tippy for review box (#23271) (#23546) 2023-03-17 14:52:04 -04:00
runner.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
svg.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
tribute.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
user.css Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00