feat: use badge for comment count
This commit is contained in:
1 parent
1df4aafb1c
commit
3b87091484
1 file changed
+4
-4
@@ -11,7 +11,7 @@
|
|||||||
import { ExclamationTriangle, Icon } from 'svelte-hero-icons'
|
import { ExclamationTriangle, Icon } from 'svelte-hero-icons'
|
||||||
import PostLink from '$lib/components/lemmy/post/PostLink.svelte'
|
import PostLink from '$lib/components/lemmy/post/PostLink.svelte'
|
||||||
import PostMeta from '$lib/components/lemmy/post/PostMeta.svelte'
|
import PostMeta from '$lib/components/lemmy/post/PostMeta.svelte'
|
||||||
import { Material, Spinner, removeToast, toast } from 'mono-svelte'
|
import { Badge, Material, Spinner, removeToast, toast } from 'mono-svelte'
|
||||||
import type { CommentSortType } from 'lemmy-js-client'
|
import type { CommentSortType } from 'lemmy-js-client'
|
||||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||||
import { profile } from '$lib/auth.js'
|
import { profile } from '$lib/auth.js'
|
||||||
@@ -237,10 +237,10 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<div class="mt-4 flex flex-col gap-2 w-full">
|
<div class="mt-4 flex flex-col gap-2 w-full">
|
||||||
<div class="flex flex-row justify-between">
|
<div class="flex flex-row justify-between">
|
||||||
<div class="font-bold opacity-80 text-base">
|
<div class="font-bold opacity-80 text-base flex items-center gap-2">
|
||||||
Comments <span class="text-lg font-medium ml-2">
|
Comments <Badge color="gray" class="!text-sm">
|
||||||
<FormattedNumber number={post.post_view.counts.comments} />
|
<FormattedNumber number={post.post_view.counts.comments} />
|
||||||
</span>
|
</Badge>
|
||||||
</div>
|
</div>
|
||||||
<MultiSelect
|
<MultiSelect
|
||||||
options={['Hot', 'Top', 'New']}
|
options={['Hot', 'Top', 'New']}
|
||||||
|
|||||||
Reference in new issue
Block a user