Skip to content

Commit 99e6cdf

Browse files
committed
Fix dropdown icon misalignment when using fomantic icon (go-gitea#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)
1 parent 937996c commit 99e6cdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web_src/css/base.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -2544,10 +2544,10 @@ table th[data-sortt-desc] .svg {
25442544
height: auto; /* reset the ".ui.dropdown > .dropdown.icon {height}", otherwise the icon would be too small */
25452545
}
25462546

2547-
.ui.selection.dropdown > .search.icon,
2548-
.ui.selection.dropdown > .delete.icon,
2549-
.ui.selection.dropdown > .dropdown.icon {
2550-
top: 0 !important;
2547+
.ui.selection.dropdown > .svg.search.icon,
2548+
.ui.selection.dropdown > .svg.delete.icon,
2549+
.ui.selection.dropdown > .svg.dropdown.icon {
2550+
top: 0 !important; /* reset the ".ui.selection.dropdown > .xxx.icon {top}" if the icon is svg instead of the fomantic icon */
25512551
}
25522552

25532553
.ui.dropdown.no-text > .dropdown.icon {

0 commit comments

Comments
 (0)