From f95622cddc8db24719d10794e50ae6b125e6b96e Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 22 Apr 2024 01:00:04 +0800 Subject: [PATCH] Fix issue comment form and quick-submit (#30623) 1. Rewrite initGlobalEnterQuickSubmit (by the way, remove jQuery) 2. Fix issue comment form layout --- templates/devtest/fetch-action.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 48 ++++++++++++----------- templates/shared/combomarkdowneditor.tmpl | 2 +- templates/user/settings/keys_ssh.tmpl | 4 +- web_src/css/repo.css | 8 ++-- web_src/js/features/common-global.js | 7 ++-- web_src/js/features/comp/QuickSubmit.js | 4 -- 7 files changed, 37 insertions(+), 38 deletions(-) diff --git a/templates/devtest/fetch-action.tmpl b/templates/devtest/fetch-action.tmpl index 7b0bbba5545..2b25e6c9c49 100644 --- a/templates/devtest/fetch-action.tmpl +++ b/templates/devtest/fetch-action.tmpl @@ -21,7 +21,7 @@
-
+
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 06d0586683b..8316df2ee1b 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -85,32 +85,34 @@ {{ctx.AvatarUtils.Avatar .SignedUser 40}}
-
- {{template "repo/issue/comment_tab" .}} - {{.CsrfTokenHtml}} -
{{else if .Repository.IsArchived}} diff --git a/templates/shared/combomarkdowneditor.tmpl b/templates/shared/combomarkdowneditor.tmpl index 96fcf04cef6..5bb71e7cd4f 100644 --- a/templates/shared/combomarkdowneditor.tmpl +++ b/templates/shared/combomarkdowneditor.tmpl @@ -45,7 +45,7 @@ Template Attributes: - +