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.
gitea/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>
2 years ago
..
components Replace Less with CSS (#23508) 2 years ago
features Scroll collapsed file into view (#23702) (#23929) 2 years ago
markup update to mermaid v10 (#23178) (#23299) 2 years ago
modules Fix `aria.js` bugs: incorrect role element problem, mobile focus problem, tippy problem (#23450) (#23486) 2 years ago
standalone Add new JS linter rules (#17699) 3 years ago
test Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
utils Remove assertion debug code for show/hide refactoring (#23576) (#23868) 2 years ago
webcomponents Polyfill the window.customElements (#23592) (#23595) 2 years ago
bootstrap.js Quick fixes monaco-editor error: "vs.editor.nullLanguage" (#21734) 2 years ago
index.js Improve AppUrl/ROOT_URL checking (#22836) 2 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 5 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 5 years ago
svg.js Fix adding of empty class name (#23352) (#23360) 2 years ago
svg.test.js Remove vitest globals (#21505) 2 years ago
utils.js Scoped labels (#22585) 2 years ago
utils.test.js Fix links for the menus in the view file page (#22795) 2 years ago