-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll collapsed file into view #23702
Conversation
Codecov Report
@@ Coverage Diff @@
## main #23702 +/- ##
==========================================
+ Coverage 47.14% 47.18% +0.03%
==========================================
Files 1149 1155 +6
Lines 151446 152396 +950
==========================================
+ Hits 71397 71901 +504
- Misses 71611 72015 +404
- Partials 8438 8480 +42
... and 47 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I think this might have a dependency/interaction on #23553, so would wait until that one is in. |
# Conflicts: # web_src/css/repository.css
seems to be OK |
Backport #23702 by @jpraet Fixes #23701, #23515. Alternate approach to #23604 using CSS scroll-margin-top, which is also taken into account for direct links to files in a diff: * On the PR diff, this currently shows the previous file first: https://try.gitea.io/jpraet/test/pulls/13/files#diff-b94d08b409f9d05fb65b6cccaf7b3e4ecc7cc333 * On the commit diff, the first line of the linked file is currently under the sticky header: https://try.gitea.io/jpraet/test/commit/1a19e6b14e31d295b7372f3346580c3e85690ff5#diff-b94d08b409f9d05fb65b6cccaf7b3e4ecc7cc333 Co-authored-by: Jimmy Praet <jimmy.praet@ksz-bcss.fgov.be>
* giteaoffical/main: Fix image border-radius (go-gitea#23886) [skip ci] Updated translations via Crowdin Scroll collapsed file into view (go-gitea#23702) docs: make the required backticks in email password more explicit (go-gitea#23923) docs: fix typo (go-gitea#23924) Update docs markdown file weight to make it clear (go-gitea#23909) Add activity feeds API (go-gitea#23494) Fix code view (diff) broken layout (go-gitea#23096) Use ghost user if package creator does not exist (go-gitea#23822) Org pages style fixes (go-gitea#23901) User/Org Feed render description as per web (go-gitea#23887)
Fixes #23701, #23515.
Alternate approach to #23604 using CSS scroll-margin-top, which is also taken into account for direct links to files in a diff: