From d793f256c81358d3dd5b0b3dc31a45ba988f4a2c Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 2 May 2024 19:12:43 +0800 Subject: [PATCH] Fix branch selector UI (#30803) (#30819) Backport #30803 by wxiaoguang Fix #30802 Co-authored-by: wxiaoguang --- templates/repo/branch_dropdown.tmpl | 8 +- .../repo/issue/branch_selector_field.tmpl | 44 +++++----- .../repo/issue/labels/labels_sidebar.tmpl | 2 +- web_src/css/base.css | 1 + web_src/css/repo.css | 85 ++++++++++++------- .../js/components/RepoBranchTagSelector.vue | 48 +---------- web_src/js/features/repo-legacy.js | 25 +++--- 7 files changed, 96 insertions(+), 117 deletions(-) diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl index 7b39830df8..8f58826c6a 100644 --- a/templates/repo/branch_dropdown.tmpl +++ b/templates/repo/branch_dropdown.tmpl @@ -69,9 +69,9 @@
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}} -
diff --git a/templates/repo/issue/branch_selector_field.tmpl b/templates/repo/issue/branch_selector_field.tmpl index ed0d58cf27..e9e5574cd7 100644 --- a/templates/repo/issue/branch_selector_field.tmpl +++ b/templates/repo/issue/branch_selector_field.tmpl @@ -4,10 +4,12 @@
{{$.CsrfTokenHtml}}
-{{/* TODO: share this branch selector dropdown with the same in repo page */}} -