fix: show upvotes and comments in crossposts
This commit is contained in:
1 parent
6fa45483fa
commit
b7882d587c
2 files changed
+9
-7
No files matched your search
@@ -45,16 +45,18 @@
|
||||
view != 'compact'
|
||||
</script>
|
||||
|
||||
<Material
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<div
|
||||
color={view != 'card' ? 'none' : 'distinct'}
|
||||
padding="none"
|
||||
class="relative max-w-full min-w-0 w-full test group gap-2
|
||||
class="relative max-w-full min-w-0 w-full group gap-2
|
||||
{view != 'card' ? 'bg-transparent !border-0' : 'p-5'} {view == 'compact'
|
||||
? 'py-4 list-type'
|
||||
: view == 'list'
|
||||
? 'py-5 list-type'
|
||||
: 'py-5 flex flex-col'} {$$props.class}"
|
||||
id={post.post.id}
|
||||
id={post.post.id.toString()}
|
||||
on:click={() => postLink(post.post)}
|
||||
>
|
||||
<PostMeta
|
||||
community={hideCommunity ? undefined : post.community}
|
||||
@@ -117,7 +119,7 @@
|
||||
</Badge>
|
||||
</div>
|
||||
{/if}
|
||||
</Material>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
:global(.list-type) {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<img
|
||||
src={bestImageURL(post, true)}
|
||||
loading="lazy"
|
||||
class="object-cover bg-slate-100 dark:bg-zinc-800 rounded-md h-24 w-24 border border-slate-200 dark:border-zinc-700"
|
||||
class="object-cover bg-slate-100 dark:bg-zinc-800 rounded-lg h-24 w-24 border border-slate-200 dark:border-zinc-700"
|
||||
/>
|
||||
</a>
|
||||
{:else}
|
||||
@@ -26,7 +26,7 @@
|
||||
<img
|
||||
src={bestImageURL(post, true)}
|
||||
loading="lazy"
|
||||
class="object-cover bg-slate-100 rounded-md h-24 w-24 border border-slate-200 dark:border-zinc-700"
|
||||
class="object-cover bg-slate-100 rounded-lg h-24 w-24 border border-slate-200 dark:border-zinc-700"
|
||||
/>
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user