RegularToot: support locked acct
This commit is contained in:
parent
d7b27f037f
commit
9cb2a1292a
2 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue