feat(card): exact view count on hover (disambiguate 9B vs 98)

The abbreviated count (e.g. '9B' for ~9 billion) can read like '98' since the B glyph
resembles an 8. Add a title tooltip with the full localized count on the views label.
This commit is contained in:
npeter83 2026-06-16 02:57:53 +02:00
parent ab439f9717
commit 48e7f8d11e

View file

@ -233,7 +233,10 @@ function VideoCard({
<>
{video.view_count != null && (
<>
{formatViews(video.view_count)} {t("card.views")} ·{" "}
<span title={`${video.view_count.toLocaleString()} ${t("card.views")}`}>
{formatViews(video.view_count)} {t("card.views")}
</span>{" "}
·{" "}
</>
)}
{relativeTime(video.published_at)}