Skip to content

Commit

Permalink
修复首页 word-break 的问题
Browse files Browse the repository at this point in the history
奇奇怪怪,不在 Firefox 出现,会在 Chrome/Safari/iOS 上出现
  • Loading branch information
movsb committed Mar 11, 2024
1 parent 53b78d6 commit 01f73e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion theme/blog/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
#latest-comment-list .post-comment-list {
padding-left: 0;
}
#latest-comment-list p {
margin: 4px 0;
line-height: 1.3em;
word-break: break-word;
}
#all-posts {
padding-left: 40px; /* https://stackoverflow.com/a/30424422/3628322 */
}
Expand Down Expand Up @@ -32,7 +37,7 @@ <h2>近期评论</h2>
<a href="/{{.PostID}}/">{{.PostTitle}}</a>
<ul class=post-comment-list>
{{ range .Comments}}
<li><b>{{.Author}}</b>:{{.Text}}</li>
<li><p><b>{{.Author}}</b>:{{.Text}}</p></li>
{{ end }}
</ul>
</li>
Expand Down

0 comments on commit 01f73e5

Please sign in to comment.