gitea/web_src/js
Giteabot 89f1df033a
Fix comment textarea scroll issue in Firefox (#34438) (#34446)
Backport #34438 by @silverwind

In the comment editor, there is a bug in Firefox where the scroll
position unexpectedly moves up, which is annoying. This is not
reproducible in Chrome and Safari. To reproduce here are some steps:

- Go into an editable issue
- Scroll page to bottom
- Focus the textarea and press Return many times, causing the textarea
to get a scrollbar
- Scroll page to bottom again
- Press Return once more
- Page should not scroll up.

This fixes the bug by adding a temporary margin, and I verified it works
in all browsers.

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-05-13 18:39:02 +02:00
..
components Grey out expired artifact on Artifacts list (#34314) (#34404) 2025-05-08 10:56:51 -07:00
features Merge and tweak markup editor expander CSS (#34409) (#34415) 2025-05-09 18:58:19 +02:00
markup markup: improve code block readability and isolate copy button (#34009) 2025-04-19 05:53:39 +00:00
modules Fix some dropdown problems on the issue sidebar (#34308) (#34327) 2025-05-01 09:24:18 -07:00
render Refactor markup and pdf-viewer to use new init framework (#33772) 2025-03-03 11:49:15 -08:00
standalone Update TypeScript types (#33799) 2025-03-05 08:03:44 -08:00
utils Fix comment textarea scroll issue in Firefox (#34438) (#34446) 2025-05-13 18:39:02 +02:00
vendor Fix areYouSure confirm (#32941) 2024-12-21 12:11:22 -05:00
webcomponents Optimize overflow-menu (#34183) 2025-04-13 01:59:36 +00:00
bootstrap.test.ts
bootstrap.ts
globals.d.ts Fix various Fomantic UI and htmx problems (#33851) 2025-03-11 11:35:05 -07:00
globals.ts
htmx.ts Update JS and PY deps, misc tweaks (#33903) 2025-03-16 10:04:18 +01:00
index.ts Optimize the calling code of queryElems (#34235) 2025-04-19 08:17:07 +08:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
svg.ts Add file tree to file view page (#32721) 2025-03-15 16:26:49 +08:00
types.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
utils.test.ts Use git diff-tree for DiffFileTree on diff pages (#33514) 2025-02-28 00:58:25 +00:00
utils.ts Add fullscreen mode as a more efficient operation way to view projects (#34081) 2025-04-23 13:42:22 +08:00
vitest.setup.ts