]> source.dussan.org Git - gitea.git/commit
Fix large image overflow in comment page (#31740)
authorcharles <30816317+charles7668@users.noreply.github.com>
Fri, 15 Nov 2024 18:34:54 +0000 (02:34 +0800)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 18:34:54 +0000 (18:34 +0000)
commite546480d0a2bbd9fcf897d7506a1efe3fa44cef3
treef88d5cd53ff4d66f46522a5152cd57fac0f21dfb
parentecbb03dc6d0e0565663dff977a4fc3d40a1e0c1e
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 <wxiaoguang@gmail.com>
templates/repo/issue/fields/markdown.tmpl
web_src/css/modules/comment.css