1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 20:15:31 -04:00

fix: image comparison component weirdness

This commit is contained in:
2026-01-28 17:11:28 -05:00
parent 4dca81b58a
commit 9afe8abfed
6 changed files with 52 additions and 126 deletions
+4 -4
View File
@@ -62,19 +62,19 @@ const PostStats = ({ slug }: { slug: string }) => {
return (
<>
{viewCount > 0 && (
<Badge variant="secondary" className="tabular-nums">
<EyeIcon className="text-foreground/85" aria-hidden="true" />
<Badge variant="secondary" className="text-foreground/80 gap-[5px] tabular-nums">
<EyeIcon className="text-foreground/65" aria-hidden="true" />
{numberFormatter.format(viewCount)}
</Badge>
)}
{commentCount > 0 && (
<Badge variant="secondary" className="tabular-nums" asChild>
<Badge variant="secondary" className="text-foreground/80 gap-[5px] tabular-nums" asChild>
<Link
href={`/${slug}#comments`}
title={`${numberFormatter.format(commentCount)} ${commentCount === 1 ? "comment" : "comments"}`}
>
<MessagesSquareIcon className="text-foreground/85" aria-hidden="true" />
<MessagesSquareIcon className="text-foreground/65" aria-hidden="true" />
{numberFormatter.format(commentCount)}
</Link>
</Badge>