diff --git a/js/app.js b/js/app.js index 65aa5be8..6a1fa2d4 100644 --- a/js/app.js +++ b/js/app.js @@ -8762,9 +8762,9 @@ class Application { (normalizedPostedAt === null || normalizedEditedAt - normalizedPostedAt >= 60); if (shouldShowEdited) { - payload.edited = `Last Edited: ${formatAbsoluteDateWithOrdinalUtil( - normalizedEditedAt - )}`; + const abs = formatAbsoluteDateWithOrdinalUtil(normalizedEditedAt); + const rel = this.formatTimeAgo(normalizedEditedAt); + payload.edited = `Last edited: ${abs} (${rel})`; } return payload; diff --git a/js/ui/components/VideoCard.js b/js/ui/components/VideoCard.js index b379b334..d18b9202 100644 --- a/js/ui/components/VideoCard.js +++ b/js/ui/components/VideoCard.js @@ -956,9 +956,15 @@ export class VideoCard { Number.isFinite(this.video?.created_at) && this.video.created_at > this.postedAt + 60 ) { + const separator = this.createElement("span", { + classNames: ["text-muted-strong", isCompact ? "" : "mx-1"], + textContent: "•", + }); + separator.setAttribute("aria-hidden", "true"); + metadata.appendChild(separator); + const edited = this.createElement("span", { - classNames: ["ml-1"], - textContent: "(edited)", + textContent: "Edited", }); metadata.appendChild(edited); }