diff --git a/src/lib/components/input/Link.svelte b/src/lib/components/input/Link.svelte index 834576fc..46bc8bbb 100644 --- a/src/lib/components/input/Link.svelte +++ b/src/lib/components/input/Link.svelte @@ -8,8 +8,8 @@ diff --git a/src/lib/components/lemmy/Post.svelte b/src/lib/components/lemmy/Post.svelte index 7f7c2c27..36a4244e 100644 --- a/src/lib/components/lemmy/Post.svelte +++ b/src/lib/components/lemmy/Post.svelte @@ -27,6 +27,7 @@ import { Color } from '$lib/ui/colors.js' import { page } from '$app/stores' import Avatar from '$lib/components/ui/Avatar.svelte' + import Link from '$lib/components/input/Link.svelte' let postRes: PostView export { postRes as post } @@ -48,99 +49,73 @@ } - -
- - -
- - - - • - - • - - {Math.floor( - (postRes.counts.upvotes / - (postRes.counts.upvotes + postRes.counts.downvotes || 1)) * - 100 - )}% - + + + +
+ + + + • + + • + + {Math.floor( + (postRes.counts.upvotes / + (postRes.counts.upvotes + postRes.counts.downvotes || 1)) * + 100 + )}% -
-
- - + +
+
+
+ {postRes.post.name} + + {#if postRes.post.url} - {postRes.post.name} - - {#if postRes.post.url} - - {postRes.post.url} - - {/if} - {#if isImage(postRes.post.url)} - - {postRes.post.name} - - {:else if isVideo(postRes.post.url)} - - - - - {/if} - {#if postRes.post.body} -

- {postRes.post.body} -

- {/if} -
-
+ > + {postRes.post.url} + + {/if} + {#if isImage(postRes.post.url)} +
+ {postRes.post.name} +
+ {/if} + {#if postRes.post.body} +

+ {postRes.post.body} +

+ {/if} +
- - - - - - + + + +