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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user