mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 06:25:31 +00:00
df74ee0376
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:
|
||
---|---|---|
.. | ||
components | ||
features | ||
markup | ||
modules | ||
standalone | ||
test | ||
utils | ||
webcomponents | ||
bootstrap.js | ||
index.js | ||
jquery.js | ||
serviceworker.js | ||
svg.js | ||
svg.test.js | ||
utils.js | ||
utils.test.js |