summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-19 10:24:26 +0800
committerGitHub <noreply@github.com>2023-03-18 22:24:26 -0400
commit30668e0047d684feec83b0e316c001c6e2332986 (patch)
treee3b059f50f12f0aa68be24787a22c2c0e9987c76
parent847f8541540be845128c607960ca4fbfe09152c9 (diff)
downloadgitea-30668e0047d684feec83b0e316c001c6e2332986.tar.gz
gitea-30668e0047d684feec83b0e316c001c6e2332986.zip
Fix dropdown icon misalignment when using fomantic icon (#23558)
There are still many dropdowns using fomantic icon. For example: new issue with issue template. Avoid polluting the fomantic styles. Before: ![image](https://user-images.githubusercontent.com/2114189/226101609-fa64178d-fed0-4541-bea2-72a250cb74db.png) After: ![image](https://user-images.githubusercontent.com/2114189/226101603-9507b275-fc5b-4a55-870d-db8c4486d80a.png)
-rw-r--r--web_src/css/base.css8
1 files changed, 4 insertions, 4 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css
index e14b1a549c..1077a0eebd 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -2540,10 +2540,10 @@ table th[data-sortt-desc] .svg {
height: auto; /* reset the ".ui.dropdown > .dropdown.icon {height}", otherwise the icon would be too small */
}
-.ui.selection.dropdown > .search.icon,
-.ui.selection.dropdown > .delete.icon,
-.ui.selection.dropdown > .dropdown.icon {
- top: 0 !important;
+.ui.selection.dropdown > .svg.search.icon,
+.ui.selection.dropdown > .svg.delete.icon,
+.ui.selection.dropdown > .svg.dropdown.icon {
+ top: 0 !important; /* reset the ".ui.selection.dropdown > .xxx.icon {top}" if the icon is svg instead of the fomantic icon */
}
.ui.dropdown.no-text > .dropdown.icon {