diff --git a/src/app/components/Content.svelte b/src/app/components/Content.svelte
index 90a02bde..90e4bba8 100644
--- a/src/app/components/Content.svelte
+++ b/src/app/components/Content.svelte
@@ -17,7 +17,6 @@
isNewline,
} from "@welshman/content"
import Link from '@lib/components/Link.svelte'
- import Button from '@lib/components/Button.svelte'
import ContentToken from '@app/components/ContentToken.svelte'
import ContentCode from '@app/components/ContentCode.svelte'
import ContentLinkInline from '@app/components/ContentLinkInline.svelte'
@@ -32,7 +31,7 @@
export let minLength = 500
export let maxLength = 700
export let showEntire = false
- export let skipMedia = false
+ export let hideMedia = false
export let expandable = true
export let depth = 0
@@ -65,14 +64,11 @@
$: shortContent = showEntire
? fullContent
- : truncate(
- fullContent.filter(p => !skipMedia || (isLink(p) && p.value.isMedia)),
- {
- minLength,
- maxLength,
- mediaLength: 200,
- },
- )
+ : truncate(fullContent, {
+ minLength,
+ maxLength,
+ mediaLength: hideMedia ? 20 : 200,
+ })
$: ellipsize = expandable && shortContent.find(isEllipsis)
@@ -90,7 +86,7 @@
{:else if isCashu(parsed) || isInvoice(parsed)}