feat: Add instance info
This commit is contained in:
1 parent
3159583654
commit
4b23c98dbd
11 files changed
+189
-68
No files matched your search
@@ -9,6 +9,8 @@
|
||||
ArrowDown,
|
||||
ArrowUp,
|
||||
ChatBubbleLeft,
|
||||
ChatBubbleOvalLeft,
|
||||
ChatBubbleOvalLeftEllipsis,
|
||||
ChevronDown,
|
||||
ChevronUp,
|
||||
Icon,
|
||||
@@ -65,7 +67,8 @@
|
||||
<div class="flex flex-row gap-2 p-2">
|
||||
<div
|
||||
class="flex flex-row items-center gap-1 rounded-md
|
||||
bg-slate-100 dark:bg-zinc-800"
|
||||
bg-slate-100 dark:bg-zinc-800 hover:bg-slate-200
|
||||
dark:hover:bg-zinc-700 transition-colors cursor-pointer"
|
||||
>
|
||||
<button aria-label="Upvote" class="p-1 px-1.5">
|
||||
<Icon src={ChevronUp} mini width={20} height={20} />
|
||||
@@ -76,16 +79,17 @@
|
||||
)}
|
||||
</span>
|
||||
<button aria-label="Downvote" class="p-1 px-1.5">
|
||||
<Icon src={ChevronDown} mini width={20} height="20}" />
|
||||
<Icon src={ChevronDown} mini width={20} height={20} />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<a
|
||||
class="flex flex-row items-center gap-2.5 p-1 px-2 rounded-md
|
||||
bg-slate-100 dark:bg-zinc-800"
|
||||
class="flex flex-row items-center gap-1 p-1.5 px-3 rounded-md
|
||||
bg-slate-100 dark:bg-zinc-800 hover:bg-slate-200
|
||||
dark:hover:bg-zinc-700 transition-colors"
|
||||
href="/post/{postRes.post.id}"
|
||||
>
|
||||
<Icon src={ChatBubbleLeft} width={16} height={16} />
|
||||
<Icon src={ChatBubbleOvalLeft} mini width={16} height={16} />
|
||||
<span class="text-sm">
|
||||
{Intl.NumberFormat('en', { notation: 'compact' }).format(
|
||||
postRes.counts.comments
|
||||
|
||||
Reference in new issue
Block a user