fix: show post bodies in cozy mode

This commit is contained in:
Xyphyn committed 2023-09-23 15:38:57 -07:00
1 parent 6f6aed15d6
commit 055cd1889c
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -123,14 +123,14 @@
nsfw={post.post.nsfw}
/>
{/if}
{#if post.post.body && !post.post.nsfw && (view == 'list' || view == 'card')}
{#if post.post.body && !post.post.nsfw && view != 'compact'}
<div
class="text-sm relative overflow-hidden
bg-gradient-to-b text-transparent from-slate-600 via-slate-600
dark:from-zinc-400 dark:via-zinc-400 bg-clip-text
{view == 'list' ? `max-h-24` : 'max-h-48'}"
>
<Markdown inline source={post.post.body.slice(0, 400)} />
<Markdown inline source={post.post.body.slice(0, 500)} />
</div>
{/if}
</div>