diff --git a/src/app/components/ContentLinkBlock.svelte b/src/app/components/ContentLinkBlock.svelte index 6534b163..9c0b464f 100644 --- a/src/app/components/ContentLinkBlock.svelte +++ b/src/app/components/ContentLinkBlock.svelte @@ -22,42 +22,41 @@ const expand = () => pushModal(ContentLinkDetail, {url}, {fullscreen: true}) - - {#if url.match(/\.(mov|webm|mp4)$/)} - - {:else if url.match(/\.(jpe?g|png|gif|webp)$/)} - - {:else} - {#await loadPreview()} -
- Unable to load a preview for {url} -
- {/await} - {/if} + {:then preview} +{ellipsize(preview.description, 140)}
++ Unable to load a preview for {url} +
+ {/await} + {/if} +