Skip to content

Commit d0043ff

Browse files
Better vertical align of buttons in headers (#13932)
The previous method used `transform` which formed a CSS stacking context which caused issues with dropdowns appearing behind other elements which made `position: static` necessary but that again caused even more issues. This method achieves the same as before, but without the additional stacking context. Co-authored-by: techknowlogick <[email protected]>
1 parent 94415f7 commit d0043ff

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

web_src/less/_base.less

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,11 +1679,6 @@ a.ui.basic.label:hover {
16791679
visibility: hidden;
16801680
}
16811681

1682-
/* prevent stacking context issue on webhook dropdown */
1683-
.ui.segment {
1684-
position: static;
1685-
}
1686-
16871682
.ui.segment,
16881683
.ui.segments,
16891684
.ui.attached.segment {
@@ -1712,8 +1707,11 @@ a.ui.basic.label:hover {
17121707
.ui.attached.header .right {
17131708
position: absolute;
17141709
right: .78571429rem;
1715-
top: 50%;
1716-
transform: translateY(-50%);
1710+
top: 0;
1711+
bottom: 0;
1712+
height: 30px;
1713+
margin-top: auto;
1714+
margin-bottom: auto;
17171715
}
17181716

17191717
/* https://github.com/go-gitea/gitea/issues/10210 */

0 commit comments

Comments
 (0)