From d6693d2c60b9e24e0610a2835949d53143d3edc5 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Tue, 16 Jun 2026 03:04:50 +0200 Subject: [PATCH] feat(card): show the exact upload date inline after the relative time There's room on the meta line, so append the precise date (locale-aware, e.g. '12 Jan 2017') after '9 yr ago' instead of hiding it in a tooltip. --- frontend/src/components/VideoCard.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/VideoCard.tsx b/frontend/src/components/VideoCard.tsx index 05b5861..da5db77 100644 --- a/frontend/src/components/VideoCard.tsx +++ b/frontend/src/components/VideoCard.tsx @@ -227,7 +227,7 @@ function VideoCard({ onChannelFilter?: (channelId: string, channelName: string) => void; onOpen?: (v: Video, startAt?: number | null) => void; }) { - const { t } = useTranslation(); + const { t, i18n } = useTranslation(); const watched = video.status === "watched"; const meta = ( <> @@ -240,6 +240,16 @@ function VideoCard({ )} {relativeTime(video.published_at)} + {video.published_at && ( + <> + {" ยท "} + {new Date(video.published_at).toLocaleDateString(i18n.language, { + year: "numeric", + month: "short", + day: "numeric", + })} + + )} ); const title = (