feat: 帖子分级置顶(板块/全站)与板块管理员置顶权限、消息管理权限调整
This commit is contained in:
@@ -73,13 +73,18 @@ export default async function PostRow({
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
{/* 仅置顶/推荐在标题左侧 */}
|
||||
{post.pinned > 0 && (
|
||||
<span className="badge-pin shrink-0" title="置顶" aria-label="置顶">
|
||||
<Pin size={12} fill="currentColor" strokeWidth={2.2} aria-hidden />
|
||||
<span
|
||||
className="badge-pin shrink-0"
|
||||
data-scope={post.pinned >= 2 ? "global" : "board"}
|
||||
title={post.pinned >= 2 ? "置顶" : "板块置顶"}
|
||||
aria-label={post.pinned >= 2 ? "置顶" : "板块置顶"}
|
||||
>
|
||||
<Pin size={12} fill="none" strokeWidth={2} aria-hidden />
|
||||
</span>
|
||||
)}
|
||||
{post.recommended && (
|
||||
<span className="badge-rec shrink-0" title="推荐" aria-label="推荐">
|
||||
<Star size={12} fill="currentColor" strokeWidth={2.2} aria-hidden />
|
||||
<Star size={12} fill="none" strokeWidth={2} aria-hidden />
|
||||
</span>
|
||||
)}
|
||||
<div className="min-w-0 flex items-center gap-2 flex-1 overflow-hidden">
|
||||
|
||||
Reference in New Issue
Block a user