From 0cc02888f7b22df886b63dd557dd2ef36a8b9344 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Fri, 18 Sep 2026 16:30:00 +0800 Subject: [PATCH] fix latest comments --- src/components/LatestComments.astro | 2 +- src/styles/latest-comments.css | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/LatestComments.astro b/src/components/LatestComments.astro index 04e206f..fd3106d 100644 --- a/src/components/LatestComments.astro +++ b/src/components/LatestComments.astro @@ -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"; --- diff --git a/src/styles/latest-comments.css b/src/styles/latest-comments.css index 05bff01..873b04a 100644 --- a/src/styles/latest-comments.css +++ b/src/styles/latest-comments.css @@ -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;