1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-23 08:47:42 -05:00
forgejo/templates/shared
Giteabot cc8c7005a6
Don't autosize textarea in diff view (#26233) (#26244)
Backport #26233 by @silverwind

Resizing the comment editor can be a very expensive operation because it
triggers page reflows, which on large PRs can take upwards of seconds to
complete. Disable this mechanism on the diff page only where we know
that the page can get large.

Fixes https://github.com/go-gitea/gitea/issues/26201 for the textarea
editor.

I don't think this can be fixed for EasyMDE because as far as I can
tell, it exposes no option to disable this resizing.

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 0f265a2489)
2023-08-21 07:22:15 +02:00
..
actions [BRANDING] How to start a runner: URL to Actions admin documentation 2023-07-17 00:25:56 +02:00
secrets Change add_on translation to added_on and include placeholder for the date (#24562) 2023-05-06 21:11:27 +08:00
user Show bot label next to username when rendering autor link if the user is a bot (#24943) 2023-05-26 18:58:11 +02:00
combomarkdowneditor.tmpl Don't autosize textarea in diff view (#26233) (#26244) 2023-08-21 07:22:15 +02:00
issueicon.tmpl Rework notifications list (#24812) 2023-05-25 02:31:26 +00:00
issuelist.tmpl [GITEA] Wrap branch information in PR list 2023-08-12 17:14:21 +00:00
searchbottom.tmpl Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00