Skip to content

Commit e546480

Browse files
Fix large image overflow in comment page (#31740)
Close #31709 52px is calculate by avatar size in templates\repo\issue\view_content\comments.tmpl ```html <img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40"> ``` + ```css .ui.comments .comment > .avatar ~ .content { margin-left: 12px; } ``` ![圖片](https://github.com/user-attachments/assets/bf15f4d4-1574-46f6-9f5e-1fbdbf1a98b0) --------- Co-authored-by: wxiaoguang <[email protected]>
1 parent ecbb03d commit e546480

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: templates/repo/issue/fields/markdown.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}">
2-
<div>{{ctx.RenderUtils.MarkdownToHtml .item.Attributes.value}}</div>
2+
<div class="markup">{{ctx.RenderUtils.MarkdownToHtml .item.Attributes.value}}</div>
33
</div>

Diff for: web_src/css/modules/comment.css

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
display: flex;
5454
flex-direction: column;
5555
flex: 1;
56+
min-width: 0;
5657
}
5758

5859
.ui.comments .comment > .avatar ~ .content {

0 commit comments

Comments
 (0)