diff options
author | silverwind <me@silverwind.io> | 2025-05-13 08:52:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-13 08:52:25 +0200 |
commit | b5fd3e7210cfbcb87015f3a5b8c3f25eab2a5715 (patch) | |
tree | f852e50d6cfb30c1251b362a40db89c4b9beedfb /models/git/commit_status.go | |
parent | 4011e2245bcd96f53077f73b7a33b1a754f7151f (diff) | |
download | gitea-b5fd3e7210cfbcb87015f3a5b8c3f25eab2a5715.tar.gz gitea-b5fd3e7210cfbcb87015f3a5b8c3f25eab2a5715.zip |
Fix comment textarea scroll issue in Firefox (#34438)
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: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'models/git/commit_status.go')
0 files changed, 0 insertions, 0 deletions