summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-20 10:44:15 +0800
committerGitHub <noreply@github.com>2023-03-20 10:44:15 +0800
commit854fcb1434d4af2c17139deb773cfd1099728975 (patch)
tree11984db49c5c3fccc1bfb0a7a029725e2a91a712 /web_src
parent4730ed18f1e28c07d9fdf5c50d99b5a8197c4fdd (diff)
downloadgitea-854fcb1434d4af2c17139deb773cfd1099728975.tar.gz
gitea-854fcb1434d4af2c17139deb773cfd1099728975.zip
Fix dropdown icon misalignment when using fomantic icon (#23558) (#23577)
Backport #23558 There are still many dropdowns using fomantic icon. For example: new issue with issue template. Avoid polluting the fomantic styles. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src')
-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 f7b9442cfa..afcbfe4cb7 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -2544,10 +2544,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 {