Skip to content

Commit 6a43d62

Browse files
Gustedlafrikszeripath
authored
Improve comment header for Mobile (#20781)
- Since b9e8fa5 the avatar will be inlined into the comment header, so there's more room for the actual comment container(thus more text per line in the comment body). However this didn't take into consideration that the flex didn't allow any wrapping and thus was shrinking the avatar. Well this isn't a perfect solution, as you ideally all want these elements to be individually wrapped(such that `comment-header-right` can be on the same line as `comment-header-left`, which now causes a new line in certain situations). It's a better solution than the current CSS and to not mess with the desktop CSS/HTML. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
1 parent 070e5d4 commit 6a43d62

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

web_src/less/_repository.less

+12
Original file line numberDiff line numberDiff line change
@@ -3401,6 +3401,18 @@ td.blob-excerpt {
34013401
}
34023402
}
34033403
}
3404+
3405+
.comment-header {
3406+
flex-wrap: wrap;
3407+
3408+
.comment-header-left {
3409+
flex-wrap: wrap;
3410+
}
3411+
3412+
.comment-header-right {
3413+
margin-left: auto;
3414+
}
3415+
}
34043416
}
34053417

34063418
.branch-dropdown-button {

0 commit comments

Comments
 (0)