From 3c014a8f0e6692e07869663867c7c74b1deb1aee Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Thu, 13 Mar 2025 18:11:01 +0000 Subject: [PATCH] ui: improve branch/tag dropdown selector consistency (#7187) Improve consistency of these tag/branch selector menus between these areas: repo file/dir view, issue branch selection, compare page. Improve the look slightly by aligning icons properly, adding consistent gap and ensuring consistent vertical gaps with no excessive space waste. Preview: https://codeberg.org/attachments/0740a811-d6bf-4c27-a16d-bdc7e2aa63eb Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7187 Reviewed-by: Gusted --- templates/repo/diff/compare.tmpl | 44 ++++++------------- .../sidebar/branch_selector_field.tmpl | 22 +++------- web_src/css/repo.css | 13 ++++++ .../js/components/RepoBranchTagSelector.vue | 15 +------ 4 files changed, 36 insertions(+), 58 deletions(-) diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index 024577afcc..c1b00c5f9e 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -39,21 +39,13 @@ {{svg "octicon-filter" 16}} -
- + -
- + -
- +
@@ -316,17 +316,6 @@ export default sfc; // activate IDE's Vue plugin