Skip to content

Commit

Permalink
fix: show post bodies in cozy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyphyn committed Sep 23, 2023
1 parent 6f6aed1 commit 055cd18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photon-lemmy",
"version": "1.10.1",
"version": "1.10.2",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/lemmy/post/Post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 055cd18

Please sign in to comment.