RegularToot: only show preview if reveal
All checks were successful
/ depoly (push) Successful in 1m20s
All checks were successful
/ depoly (push) Successful in 1m20s
This commit is contained in:
parent
8cd95b9e90
commit
8d8d2a8fb1
1 changed files with 5 additions and 1 deletions
|
@ -339,7 +339,11 @@ const RegularToot: Component<RegularTootProps> = (props) => {
|
|||
reveal={reveal()}
|
||||
onToggleReveal={[onToggleReveal, setReveal]}
|
||||
/>
|
||||
<Show when={toot().card}>
|
||||
<Show
|
||||
when={
|
||||
toot().card && (!toot().sensitive || (toot().sensitive && reveal()))
|
||||
}
|
||||
>
|
||||
<PreviewCard src={toot().card!} />
|
||||
</Show>
|
||||
<Show when={toot().mediaAttachments.length > 0}>
|
||||
|
|
Loading…
Reference in a new issue