Make 'minutes' a bit shorter.

To avoid some line wrapping
This commit is contained in:
Eli Ribble 2026-03-18 19:26:06 +00:00
parent 28714b06b8
commit c39837faba
No known key found for this signature in database

View file

@ -55,7 +55,7 @@ class TimeRelative extends HTMLElement {
return "just now";
} else if (diffInSeconds < hour) {
const minutes = Math.floor(diffInSeconds / minute);
return `${minutes} ${minutes === 1 ? "minute" : "minutes"} ago`;
return `${minutes} ${minutes === 1 ? "min" : "min"} ago`;
} else if (diffInSeconds < day) {
const hours = Math.floor(diffInSeconds / hour);
return `${hours} ${hours === 1 ? "hour" : "hours"} ago`;