forked from coracle/flotilla
Fix warning, hide images in quotes
This commit is contained in:
@@ -152,8 +152,8 @@
|
||||
{:else if isEvent(parsed) || isAddress(parsed)}
|
||||
{#if isBlock(i)}
|
||||
<ContentQuote {...quoteProps} value={parsed.value} {event}>
|
||||
{#snippet noteContent({event}: {event: TrustedEvent})}
|
||||
<Content {quoteProps} {hideMedia} {event} depth={depth + 1} />
|
||||
{#snippet noteContent({event, minimal}: {event: TrustedEvent; minimal: boolean})}
|
||||
<Content {quoteProps} hideMedia={minimal || hideMedia} {event} depth={depth + 1} />
|
||||
{/snippet}
|
||||
</ContentQuote>
|
||||
{:else}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<Button class="my-2 block max-w-full text-left" {onclick}>
|
||||
{#if $quote}
|
||||
<NoteCard {minimal} event={$quote} class="bg-alt rounded-box p-4">
|
||||
{@render noteContent({event: $quote})}
|
||||
{@render noteContent({event: $quote, minimal})}
|
||||
</NoteCard>
|
||||
{:else}
|
||||
<div class="rounded-box p-4">
|
||||
|
||||
Reference in New Issue
Block a user