From ebe6f4cad775a82d11c916c9af716beec394768b Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 2 May 2024 18:45:23 +0800 Subject: [PATCH] Fix branch selector UI (#30803) Fix #30802 --- 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 */}} -