From 42cbe6005adfe6e1440cdc9c15a05996f065bf83 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 21 Aug 2023 21:35:02 +0800 Subject: [PATCH] Improve the branch selector tab UI (#26631) --- web_src/css/repo.css | 4 +- .../js/components/RepoBranchTagSelector.vue | 57 ++++++++++++------- 2 files changed, 39 insertions(+), 22 deletions(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 8e8125a5f4..03e9019b25 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1255,8 +1255,8 @@ color: var(--color-text-light-2); } -.repository .filter.dropdown .menu { - margin-top: 1px !important; +.repository .ui.dropdown.filter > .menu { + margin-top: 1px; } .repository.branches .commit-divergence .bar-group { diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index e6e72e3886..488f80a76f 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -16,26 +16,15 @@ - +
+ + {{ textBranches }} + + + {{ textTags }} + +
+