Fine tuning date formatting.
This commit is contained in:
@@ -356,7 +356,7 @@ const abuseRows = computed(() => formatAbuseRows(data.value?.abuse || [], client
|
||||
}
|
||||
|
||||
.visit-table .last-seen {
|
||||
width: 5rem;
|
||||
width: 6rem;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -185,6 +185,8 @@ export function formatWhen(ts, now = Date.now()) {
|
||||
if (adiff <= 86400000) {
|
||||
return formatter
|
||||
.format(Math.round(diff / 3600000), 'hour')
|
||||
.replace('hours', 'h')
|
||||
.replace('hour', 'h')
|
||||
.replaceAll(' ', '\u202F')
|
||||
}
|
||||
if (adiff <= 604800000) {
|
||||
|
||||
Reference in New Issue
Block a user