Fix input positioning for small screens

This commit is contained in:
Paul Frazee
2022-11-16 14:28:33 -06:00
parent a3c3b1cd27
commit 30c0a5f4b1
5 changed files with 53 additions and 34 deletions
+1 -3
View File
@@ -42,9 +42,7 @@ export function ago(date: number | string | Date): string {
ts = date
}
const diffSeconds = Math.floor((Date.now() - ts) / 1e3)
if (diffSeconds === 0) {
return 'just now'
} else if (diffSeconds < MINUTE) {
if (diffSeconds < MINUTE) {
return `${diffSeconds}s`
} else if (diffSeconds < HOUR) {
return `${Math.floor(diffSeconds / MINUTE)}m`