Merge pull request #43 from ClovertaTheTrilobita/dev

fix latest comments
This commit is contained in:
ClovertaTheTrilobita 2026-09-18 16:30:53 +08:00 committed by GitHub
commit c17d49de3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -2,7 +2,7 @@
const { lang = "zh" } = Astro.props;
const host = import.meta.env.PUBLIC_REMARK42_HOST;
const siteId = import.meta.env.PUBLIC_REMARK42_SITE_ID;
const max = 5;
const max = 7;
const heading = lang === "zh" ? "最新评论" : "Latest comments";
---

View file

@ -151,11 +151,18 @@
.comment-source-context {
display: flex;
align-items: baseline;
flex: 1 1 auto;
gap: 0.4rem;
min-width: 0;
}
.comment-source-context > span {
flex: 0 0 auto;
white-space: nowrap;
}
.comment-title-link {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
color: #6f8090;