mirror of
1
Fork 0
forgejo/web_src/js
Giteabot df74ee0376
Scroll collapsed file into view (#23702) (#23929)
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:
1a19e6b14e (diff-b94d08b409f9d05fb65b6cccaf7b3e4ecc7cc333)

Co-authored-by: Jimmy Praet <jimmy.praet@ksz-bcss.fgov.be>
2023-04-05 13:49:22 +03:00
..
components Replace Less with CSS (#23508) 2023-03-16 21:04:39 -04:00
features Scroll collapsed file into view (#23702) (#23929) 2023-04-05 13:49:22 +03:00
markup update to mermaid v10 (#23178) (#23299) 2023-03-05 02:13:50 -05:00
modules Fix `aria.js` bugs: incorrect role element problem, mobile focus problem, tippy problem (#23450) (#23486) 2023-03-18 17:14:19 +01:00
standalone
test
utils Remove assertion debug code for show/hide refactoring (#23576) (#23868) 2023-04-02 16:20:06 +08:00
webcomponents Polyfill the window.customElements (#23592) (#23595) 2023-03-20 19:52:05 +01:00
bootstrap.js
index.js
jquery.js
serviceworker.js
svg.js Fix adding of empty class name (#23352) (#23360) 2023-03-07 17:15:19 -05:00
svg.test.js
utils.js Scoped labels (#22585) 2023-02-18 21:17:39 +02:00
utils.test.js