RegularToot: support locked acct

This commit is contained in:
thislight 2024-11-06 19:55:51 +08:00
parent d7b27f037f
commit 9cb2a1292a
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
2 changed files with 7 additions and 2 deletions

View file

@ -21,6 +21,7 @@ import {
Bookmark,
Share,
SmartToySharp,
Lock,
} from "@suid/icons-material";
import { useTimeSource } from "../platform/timesrc.js";
import { resolveCustomEmoji } from "../masto/toot.js";
@ -154,7 +155,10 @@ function TootAuthorGroup(
<div class={tootStyle.tootAuthorNameGrp}>
<div class={tootStyle.tootAuthorNamePrimary}>
<Show when={toot().account.bot}>
<SmartToySharp class="bot-mark" aria-label="Bot" />
<SmartToySharp class="acct-mark" aria-label="Bot" />
</Show>
<Show when={toot().account.locked}>
<Lock class="acct-mark" aria-label="Locked" />
</Show>
<Body2
component="span"

View file

@ -72,8 +72,9 @@
align-items: center;
gap: 4px;
> :global(.bot-mark) {
> :global(.acct-mark) {
font-size: 1.2em;
color: var(--tutu-color-secondary-text-on-surface);
}
}