mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
UX Improvements
This commit is contained in:
parent
a553cb4d4e
commit
bb99881a7c
2 changed files with 643 additions and 657 deletions
|
|
@ -347,7 +347,7 @@ export function renderSearch($app) {
|
|||
typeof canonicalSkuFn === "function" ? canonicalSkuFn : (x) => x;
|
||||
|
||||
const nowMs = Date.now();
|
||||
const cutoffMs = nowMs - 24 * 60 * 60 * 1000;
|
||||
const cutoffMs = nowMs - 3 * 24 * 60 * 60 * 1000;
|
||||
|
||||
function eventMs(r) {
|
||||
const t = String(r?.ts || "");
|
||||
|
|
@ -420,7 +420,7 @@ export function renderSearch($app) {
|
|||
const limited = ranked.slice(0, 140);
|
||||
|
||||
$results.innerHTML =
|
||||
`<div class="small">Recently changed (last 24 hours):</div>` +
|
||||
`<div class="small">Recently changed (last 3 days):</div>` +
|
||||
limited
|
||||
.map(({ r, meta }) => {
|
||||
const kindLabel =
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue