Skip to content

Commit ae5aaf2

Browse files
author
Gusted
committed
Improve comment header for mobile (go-gitea#20781)
- Backport go-gitea#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.
1 parent 9bccfe9 commit ae5aaf2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

web_src/less/_repository.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3428,4 +3428,16 @@ td.blob-excerpt {
34283428
}
34293429
}
34303430
}
3431+
3432+
.comment-header {
3433+
flex-wrap: wrap;
3434+
3435+
.comment-header-left {
3436+
flex-wrap: wrap;
3437+
}
3438+
3439+
.comment-header-right {
3440+
margin-left: auto;
3441+
}
3442+
}
34313443
}

0 commit comments

Comments
 (0)