diff --git a/src/components/PostList.astro b/src/components/PostList.astro index e44267e..ca23a24 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -286,6 +286,7 @@ const byMonth = (list: CollectionEntry<'posts'>[]) => { color: var(--accent); border-bottom: 1px solid transparent; } + .more-link { margin-left: auto; } .more-link:hover { border-bottom-color: var(--accent); } /* ---- 首页分轨形态(perTrack):阅读/技朮两段,各段自带更多出口 ---- */ @@ -294,7 +295,10 @@ const byMonth = (list: CollectionEntry<'posts'>[]) => { display: flex; align-items: baseline; gap: 0.35rem; - justify-content: space-between; + /* 不能用 space-between:本行有三个 flex 子项(::before 灰点 + 标题文本 + + 右侧「全部文章 →」),space-between 会把中间的标题挤到正中(用户实测 + "阅读/技术居中了")。改为贴左,链接自行右推。 */ + justify-content: flex-start; margin: 0 0 var(--space-1); font-size: 13px; font-weight: 600;