From 831db53c214f81e5eaf055716a42865007cb8123 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 21 Jun 2023 07:22:48 +0800 Subject: [PATCH] Fix dropdown icon layout on diff page (#25397) Address https://github.com/go-gitea/gitea/pull/25163#issuecomment-1599207916 Remove the unused "icon-button". And fix the layout: Without the dropdown icon: ``` {{svg "gitea-whitespace"}} ``` ![image](https://github.com/go-gitea/gitea/assets/2114189/58a524ba-f289-4982-aea2-6f9f9f9cbdcf) With the dropdown icon: ``` {{svg "gitea-whitespace" 16 "gt-mr-3"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}} ``` ![image](https://github.com/go-gitea/gitea/assets/2114189/eb99168b-5d49-40a7-8665-5296cbb4e486) --- templates/package/shared/cleanup_rules/list.tmpl | 2 +- templates/repo/diff/new_review.tmpl | 2 +- templates/repo/diff/options_dropdown.tmpl | 2 +- templates/repo/diff/whitespace_dropdown.tmpl | 5 ++--- web_src/css/modules/button.css | 6 ------ web_src/css/repo.css | 5 +++-- 6 files changed, 8 insertions(+), 14 deletions(-) diff --git a/templates/package/shared/cleanup_rules/list.tmpl b/templates/package/shared/cleanup_rules/list.tmpl index 10a073eb55..485bff562e 100644 --- a/templates/package/shared/cleanup_rules/list.tmpl +++ b/templates/package/shared/cleanup_rules/list.tmpl @@ -9,7 +9,7 @@ {{range .CleanupRules}}
-