diff --git a/src/element/NoteReaction.css b/src/element/NoteReaction.css index 13984c9b6..e99fd2ab2 100644 --- a/src/element/NoteReaction.css +++ b/src/element/NoteReaction.css @@ -19,5 +19,6 @@ } .reaction > .header > .info { + color: #999; font-size: small; } \ No newline at end of file diff --git a/src/element/NoteTime.js b/src/element/NoteTime.js index b260f387b..9b2ebc77b 100644 --- a/src/element/NoteTime.js +++ b/src/element/NoteTime.js @@ -16,9 +16,12 @@ export default function NoteTime(props) { return fromDate.toLocaleDateString(undefined, { year: "2-digit", month: "short", day: "2-digit", weekday: "short" }); } else if (absAgo > HourInMs) { return `${fromDate.getHours().toString().padStart(2, '0')}:${fromDate.getMinutes().toString().padStart(2, '0')}`; + } else if (absAgo < MinuteInMs) { + return 'Just now' } else { let mins = parseInt(absAgo / MinuteInMs); - return `${mins} mins ago`; + let minutes = mins === 1 ? 'min' : 'mins' + return `${mins} ${minutes} ago`; } }