polish(feed): 列表行整区进帖,板块胶囊不可点

修复 meta 抬层挡住 stretch,并统一作者与回复者 hover 变色。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-16 10:55:26 +08:00
parent 8024f54f8c
commit ad5e0f5d9a
3 changed files with 32 additions and 33 deletions

View File

@@ -1986,6 +1986,7 @@ a.j13-mention-token:hover {
gap: 8px;
margin-top: 6px;
}
/* 板块胶囊:仅标识,不可点(列表行点击由 stretch-link 进帖) */
.j13-board-tag {
display: inline-flex;
align-items: center;
@@ -1997,11 +1998,8 @@ a.j13-mention-token:hover {
background: var(--tint);
color: var(--ink-2);
white-space: nowrap;
transition: background 0.15s ease, color 0.15s ease;
}
.j13-board-tag:hover {
background: var(--accent-soft);
color: var(--accent);
pointer-events: none;
user-select: none;
}
/* 站点公告标签:预设色板(浅/暗成对,文字与底色均满足 AA 对比度) */

View File

@@ -124,7 +124,7 @@ export default async function HomePage({ searchParams }: HomePageProps) {
<div className="panel overflow-hidden">
{postsData.posts.length > 0 ? (
postsData.posts.map((post, i) => (
<PostRow key={post.id} post={post} boardHref index={i} showViews={false} showLike={false} />
<PostRow key={post.id} post={post} showBoard index={i} showViews={false} showLike={false} />
))
) : (
<EmptyState keyword={keyword} />
@@ -185,7 +185,7 @@ export default async function HomePage({ searchParams }: HomePageProps) {
<PostRow
key={post.id}
post={post}
boardHref={!activeBoard}
showBoard={!activeBoard}
compact
index={i}
showViews={false}