Fix input positioning for small screens
This commit is contained in:
parent
0b7b91d5fd
commit
5bb8751bc1
5 changed files with 53 additions and 34 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue