From 82eca44581100d96e11097db743804bc398d1742 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 2 May 2024 11:25:55 +0200 Subject: [PATCH 1/5] Fix rounded border for segment followed by pagination (#30809) Fixes https://github.com/go-gitea/gitea/issues/30673, specifically https://github.com/go-gitea/gitea/issues/30673#issuecomment-2085329812. --- web_src/css/modules/segment.css | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/css/modules/segment.css b/web_src/css/modules/segment.css index cb307dc1a3..48dc5c4488 100644 --- a/web_src/css/modules/segment.css +++ b/web_src/css/modules/segment.css @@ -152,6 +152,7 @@ } .ui.attached.segment:has(+ .ui[class*="top attached"].header), +.ui.attached.segment:has(+ .page.buttons), .ui.attached.segment:last-child, .ui.segment:has(+ .ui.segment:not(.attached)), .ui.attached.segment:has(+ .ui.modal) { From ebe6f4cad775a82d11c916c9af716beec394768b Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 2 May 2024 18:45:23 +0800 Subject: [PATCH 2/5] 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 */}} -