Skip to content

Commit

Permalink
Use flex wrap to layout the PR update button (#29590)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
wxiaoguang authored Mar 5, 2024
1 parent df1268c commit ade6241
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -935,18 +935,11 @@

.repository.view.issue .comment-list .comment .merge-section .item-section {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 0;
margin-top: -0.25rem;
margin-bottom: -0.25rem;
}

@media (max-width: 991.98px) {
.repository.view.issue .comment-list .comment .merge-section .item-section {
align-items: flex-start;
flex-direction: column;
}
gap: 0.5em;
}

.repository.view.issue .comment-list .comment .merge-section .divider {
Expand Down

0 comments on commit ade6241

Please sign in to comment.