mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: add pinned icon in status bar
This commit is contained in:
@@ -300,6 +300,14 @@ const Memo: React.FC<Props> = (props: Props) => {
|
|||||||
<UserAvatar className="!w-5 !h-auto mr-1" avatarUrl={creator.avatarUrl} />
|
<UserAvatar className="!w-5 !h-auto mr-1" avatarUrl={creator.avatarUrl} />
|
||||||
<span className="text-sm text-gray-600 max-w-[8em] truncate dark:text-gray-400">{creator.nickname}</span>
|
<span className="text-sm text-gray-600 max-w-[8em] truncate dark:text-gray-400">{creator.nickname}</span>
|
||||||
</Link>
|
</Link>
|
||||||
|
{memo.pinned && (
|
||||||
|
<>
|
||||||
|
<Icon.Dot className="w-4 h-auto text-gray-400 dark:text-zinc-400" />
|
||||||
|
<Tooltip title={"Pinned"} placement="top">
|
||||||
|
<Icon.Bookmark className="w-4 h-auto text-green-600" />
|
||||||
|
</Tooltip>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
{props.showVisibility && (
|
{props.showVisibility && (
|
||||||
<>
|
<>
|
||||||
<Icon.Dot className="w-4 h-auto text-gray-400 dark:text-zinc-400" />
|
<Icon.Dot className="w-4 h-auto text-gray-400 dark:text-zinc-400" />
|
||||||
|
Reference in New Issue
Block a user