From cda69a036314a27c7c7174adfd9060d6867ce1eb Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 20 Jun 2023 22:55:11 -0400 Subject: [PATCH] Fix dropdown icon layout on diff page (#25397) (#25403) Backport #25397 by @wxiaoguang 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) Co-authored-by: wxiaoguang --- 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}}
-