Skip to content

Commit ade6241

Browse files
authored
Use flex wrap to layout the PR update button (#29590)
Follow #29418 I think using "flex-wrap: wrap" here is better than hard-coding the screen width. By using "flex-wrap: wrap", the UI layouts automatically for various widths (even if in some languages, the sentence might be pretty long)
1 parent df1268c commit ade6241

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

web_src/css/repo.css

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -935,18 +935,11 @@
935935

936936
.repository.view.issue .comment-list .comment .merge-section .item-section {
937937
display: flex;
938+
flex-wrap: wrap;
938939
align-items: center;
939940
justify-content: space-between;
940941
padding: 0;
941-
margin-top: -0.25rem;
942-
margin-bottom: -0.25rem;
943-
}
944-
945-
@media (max-width: 991.98px) {
946-
.repository.view.issue .comment-list .comment .merge-section .item-section {
947-
align-items: flex-start;
948-
flex-direction: column;
949-
}
942+
gap: 0.5em;
950943
}
951944

952945
.repository.view.issue .comment-list .comment .merge-section .divider {

0 commit comments

Comments
 (0)