mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	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; } ```  --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		@@ -1,3 +1,3 @@
 | 
				
			|||||||
<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}">
 | 
					<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}">
 | 
				
			||||||
	<div>{{ctx.RenderUtils.MarkdownToHtml .item.Attributes.value}}</div>
 | 
						<div class="markup">{{ctx.RenderUtils.MarkdownToHtml .item.Attributes.value}}</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,6 +53,7 @@
 | 
				
			|||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  flex-direction: column;
 | 
					  flex-direction: column;
 | 
				
			||||||
  flex: 1;
 | 
					  flex: 1;
 | 
				
			||||||
 | 
					  min-width: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.ui.comments .comment > .avatar ~ .content {
 | 
					.ui.comments .comment > .avatar ~ .content {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user