]> source.dussan.org Git - gitea.git/commit
enforce maxlength in frontend (#29389) (#29396)
authorGiteabot <teabot@gitea.io>
Sun, 25 Feb 2024 14:56:44 +0000 (22:56 +0800)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2024 14:56:44 +0000 (14:56 +0000)
commit0b3d6c399c88e42e827f422dc4c8458f0d20c613
tree5539ebec170cb9e84474ccf89bf211dfb489211c
parentf98a1b851c0c918439e6f9c60afcd7cc7f4b0b9f
enforce maxlength in frontend (#29389) (#29396)

Backport #29389 by @zokkis

Set maxlength attribute in frontend

to long file-name

![image](https://github.com/go-gitea/gitea/assets/72873130/15111614-55ab-4583-acb2-15c25997601d)

![image](https://github.com/go-gitea/gitea/assets/72873130/4105ddd8-4973-4da8-b3ab-4cfae1b45554)
(same for branch-name and commit-summary)

Co-authored-by: Tim-Niclas Oelschläger <72873130+zokkis@users.noreply.github.com>
templates/repo/editor/commit_form.tmpl
templates/repo/editor/edit.tmpl
templates/repo/editor/patch.tmpl
templates/repo/editor/upload.tmpl
web_src/js/utils.js