Skip to content

Commit a8fa380

Browse files
authored
Dropdown triangle fixes (#14028)
* Dropdown triangle fixes Fomantic's CSS assumes the dropdown triangles are fonts but we've recently swapped them for SVG so we need to wrestle a bit with Fomantic to get it to display properly and not cause buttons to resize. Fixes: #14014 * move css and add link
1 parent 511f613 commit a8fa380

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

web_src/less/_base.less

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,6 +1734,26 @@ table th[data-sortt-desc] {
17341734
}
17351735
}
17361736

1737+
/* fix up SVG dropdown triangles because fomantic thinks they are icon fonts */
1738+
/* see https://github.com/go-gitea/gitea/issues/14014 */
1739+
.ui.dropdown > .dropdown.icon,
1740+
.btn-review > .dropdown.icon {
1741+
height: auto !important;
1742+
margin-left: .5rem !important;
1743+
margin-top: -1px !important;
1744+
margin-bottom: -1px !important;
1745+
margin-right: -.5rem !important;
1746+
}
1747+
.ui.button.dropdown > .dropdown.icon,
1748+
.btn-review > .dropdown.icon {
1749+
float: right !important;
1750+
}
1751+
.ui.selection.dropdown > .search.icon,
1752+
.ui.selection.dropdown > .delete.icon,
1753+
.ui.selection.dropdown > .dropdown.icon {
1754+
top: 0 !important;
1755+
}
1756+
17371757
/* limit width of all direct dropdown menu children */
17381758
/* https://github.com/go-gitea/gitea/pull/10835 */
17391759
.dropdown:not(.selection) > .menu:not(.review-box) > *:not(.header) {

web_src/less/_review.less

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,6 @@ a.blob-excerpt:hover {
142142
color: #fff;
143143
}
144144

145-
.btn-review > .dropdown.icon {
146-
float: right;
147-
height: 12px !important;
148-
margin-left: .5rem;
149-
}
150-
151145
@media @mediaSm {
152146
#review-box > .menu {
153147
> .ui.segment {

0 commit comments

Comments
 (0)