mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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:
|
2 years ago | |
---|---|---|
.. | ||
components | 2 years ago | |
features | 2 years ago | |
markup | 2 years ago | |
modules | 2 years ago | |
standalone | 3 years ago | |
test | 2 years ago | |
utils | 2 years ago | |
webcomponents | 2 years ago | |
bootstrap.js | 2 years ago | |
index.js | 2 years ago | |
jquery.js | 5 years ago | |
serviceworker.js | 5 years ago | |
svg.js | 2 years ago | |
svg.test.js | 2 years ago | |
utils.js | 2 years ago | |
utils.test.js | 2 years ago |