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'
|
view != 'compact'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Material
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
|
<div
|
||||||
color={view != 'card' ? 'none' : 'distinct'}
|
color={view != 'card' ? 'none' : 'distinct'}
|
||||||
padding="none"
|
class="relative max-w-full min-w-0 w-full group gap-2
|
||||||
class="relative max-w-full min-w-0 w-full test group gap-2
|
|
||||||
{view != 'card' ? 'bg-transparent !border-0' : 'p-5'} {view == 'compact'
|
{view != 'card' ? 'bg-transparent !border-0' : 'p-5'} {view == 'compact'
|
||||||
? 'py-4 list-type'
|
? 'py-4 list-type'
|
||||||
: view == 'list'
|
: view == 'list'
|
||||||
? 'py-5 list-type'
|
? 'py-5 list-type'
|
||||||
: 'py-5 flex flex-col'} {$$props.class}"
|
: 'py-5 flex flex-col'} {$$props.class}"
|
||||||
id={post.post.id}
|
id={post.post.id.toString()}
|
||||||
|
on:click={() => postLink(post.post)}
|
||||||
>
|
>
|
||||||
<PostMeta
|
<PostMeta
|
||||||
community={hideCommunity ? undefined : post.community}
|
community={hideCommunity ? undefined : post.community}
|
||||||
@@ -117,7 +119,7 @@
|
|||||||
</Badge>
|
</Badge>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</Material>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
:global(.list-type) {
|
:global(.list-type) {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<img
|
<img
|
||||||
src={bestImageURL(post, true)}
|
src={bestImageURL(post, true)}
|
||||||
loading="lazy"
|
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>
|
</a>
|
||||||
{:else}
|
{:else}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<img
|
<img
|
||||||
src={bestImageURL(post, true)}
|
src={bestImageURL(post, true)}
|
||||||
loading="lazy"
|
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>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in new issue
Block a user