feat: 帖子分级置顶(板块/全站)与板块管理员置顶权限、消息管理权限调整
This commit is contained in:
@@ -15,7 +15,7 @@ function formatTime(dateStr: string) {
|
||||
|
||||
/**
|
||||
* 管理员置顶区:独立于普通帖子列表。
|
||||
* 陶土色语义(与 badge-pin 一致),紧凑排列,一眼识别为公告性质内容。
|
||||
* 焦橙语义(与 badge-pin 一致),紧凑排列,一眼识别为公告性质内容。
|
||||
*/
|
||||
export default async function PinnedPosts({
|
||||
posts,
|
||||
@@ -32,11 +32,11 @@ export default async function PinnedPosts({
|
||||
<div className="flex items-center gap-2 mb-2.5 px-1">
|
||||
<span
|
||||
className="w-6 h-6 rounded-full flex items-center justify-center"
|
||||
style={{ background: "var(--clay-soft)", color: "var(--clay)" }}
|
||||
style={{ background: "var(--pin-soft)", color: "var(--pin)" }}
|
||||
>
|
||||
<Pin size={12} fill="currentColor" strokeWidth={2.4} />
|
||||
<Pin size={12} fill="none" strokeWidth={2} />
|
||||
</span>
|
||||
<h2 className="text-[13.5px] font-extrabold tracking-wide" style={{ color: "var(--clay)" }}>
|
||||
<h2 className="text-[13.5px] font-extrabold tracking-wide" style={{ color: "var(--pin)" }}>
|
||||
置顶讨论
|
||||
</h2>
|
||||
<span className="meta text-xs">管理员置顶 · {posts.length}</span>
|
||||
@@ -78,7 +78,7 @@ export default async function PinnedPosts({
|
||||
title="推荐"
|
||||
aria-label="推荐"
|
||||
>
|
||||
<Star size={10} fill="currentColor" strokeWidth={2.2} aria-hidden />
|
||||
<Star size={10} fill="none" strokeWidth={2} aria-hidden />
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
@@ -94,9 +94,9 @@ export default async function PinnedPosts({
|
||||
<Pin
|
||||
size={13}
|
||||
className="shrink-0 hidden sm:block"
|
||||
style={{ color: "var(--clay)" }}
|
||||
fill="currentColor"
|
||||
strokeWidth={2.2}
|
||||
style={{ color: "var(--pin)" }}
|
||||
fill="none"
|
||||
strokeWidth={2}
|
||||
/>
|
||||
</Link>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user