gitea
gitea copied to clipboard
Fix large image overflow in comment page
Close #31709
52px is calculate by avatar size in templates\repo\issue\view_content\comments.tmpl
<img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40">
.ui.comments .comment > .avatar ~ .content {
margin-left: 12px;
}
Why this is related to the avatar's size/location?
Hmm I need to check this, but my feeling is that the fix is wrong and we should not need to specify any pixel values.
How to reproduce, just a overly large image?
The actual problem is this CSS:
Setting width to 100% !important fixes it. Needs more investigation. There must be some difference in the CSS for these elements somewhere between table and img, but I can't see any right now.
The proper fix should be this