feat: Add instance changing
This commit is contained in:
1 parent
f201123291
commit
3159583654
17 files changed
+142
-35
No files matched your search
@@ -16,6 +16,7 @@
|
||||
import type { CommentNodeI } from './comments.js'
|
||||
import RelativeDate from '$lib/components/RelativeDate.svelte'
|
||||
import CommunityLink from '$lib/components/CommunityLink.svelte'
|
||||
import { isImage } from '$lib/ui/image.js'
|
||||
|
||||
let postRes: PostView
|
||||
export { postRes as post }
|
||||
@@ -45,12 +46,13 @@
|
||||
{postRes.post.url}
|
||||
</a>
|
||||
{/if}
|
||||
{#if postRes.post.thumbnail_url}
|
||||
{#if isImage(postRes.post.url)}
|
||||
<a href="/post/{postRes.post.id}" class="inline self-start">
|
||||
<img
|
||||
src={postRes.post.thumbnail_url}
|
||||
src={postRes.post.url}
|
||||
alt={postRes.post.name}
|
||||
class="rounded-md max-h-64 max-w-max"
|
||||
class="rounded-md max-h-64 max-w-full"
|
||||
loading="lazy"
|
||||
/>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user