diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-27 22:32:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 14:32:00 +0000 |
commit | 8de2992ffba8cc627757ecea1e002a55581113d2 (patch) | |
tree | 0ac56412f0686ae8c53e8ab1ef8d389c8cb751ae /templates/repo | |
parent | 6d2a307ad8af7d686f1c3a3706ff0f2df895658a (diff) | |
download | gitea-1.22.0-rc1.tar.gz gitea-1.22.0-rc1.zip |
Make Ctrl+Enter work for issue/comment edit (#30720)v1.22.0-rc1
Fix #30710
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/diff/box.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 92a3163642..641de294fd 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -235,7 +235,7 @@ {{if and (not $.Repository.IsArchived) (not .DiffNotAvailable)}} <template id="issue-comment-editor-template"> - <div class="ui comment form"> + <div class="ui form comment"> {{template "shared/combomarkdowneditor" (dict "MarkdownPreviewUrl" (print $.Repository.Link "/markup") "MarkdownPreviewContext" $.RepoLink @@ -249,7 +249,7 @@ {{end}} <div class="text right edit buttons"> <button class="ui cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> - <button class="ui primary save button">{{ctx.Locale.Tr "repo.issues.save"}}</button> + <button class="ui primary button">{{ctx.Locale.Tr "repo.issues.save"}}</button> </div> </div> </template> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 8316df2ee1..d40134ed08 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -146,7 +146,7 @@ </div> <template id="issue-comment-editor-template"> - <div class="ui comment form"> + <div class="ui form comment"> <div class="field"> {{template "shared/combomarkdowneditor" (dict "MarkdownPreviewUrl" (print .Repository.Link "/markup") @@ -164,8 +164,8 @@ <div class="field"> <div class="text right edit"> - <button class="ui basic cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> - <button class="ui primary save button">{{ctx.Locale.Tr "repo.issues.save"}}</button> + <button class="ui cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> + <button class="ui primary button">{{ctx.Locale.Tr "repo.issues.save"}}</button> </div> </div> </div> |