From da020cb5123f7f78d37b07846da2342430e3e52b Mon Sep 17 00:00:00 2001 From: Tugcan Topaloglu Date: Thu, 5 Mar 2026 12:10:53 +0300 Subject: [PATCH] fix: limit memory files to 5 with show more, crash labels, remove disk trend text --- index.html | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 2ef62fb..40e56e6 100644 --- a/index.html +++ b/index.html @@ -1555,10 +1555,15 @@ body.light-theme ::selection { background: rgba(99,102,241,0.2); }
-
0
-
TODAY
-
0
-
7-DAY
+
💥 Crashes
+
+
0
+
today
+
+
+
0
+
7-day
+
@@ -4603,14 +4608,17 @@ window.runCronJob = async function(id) { `; }).join('') || '
No recent commits
'; - document.getElementById('memoryFiles').innerHTML = memFiles.map(f => { + const memLimit = 5; + const memHtml = memFiles.map((f, idx) => { const age = now - f.modified; const ago = age < 60000 ? 'just now' : age < 3600000 ? Math.round(age/60000)+'m ago' : age < 86400000 ? Math.round(age/3600000)+'h ago' : Math.round(age/86400000)+'d ago'; - return `
+ return `
📄 ${f.name} ${ago}
`; }).join('') || '
No files
'; + const showMoreBtn = memFiles.length > memLimit ? `
Show all (${memFiles.length} files) ↓
` : ''; + document.getElementById('memoryFiles').innerHTML = memHtml + showMoreBtn; const inK = (tokens.totalInput / 1000).toFixed(0) + 'k'; const outK = (tokens.totalOutput / 1000).toFixed(0) + 'k'; @@ -5027,7 +5035,7 @@ function renderDiskSparkline(history) { const y = h - ((v - min) / range) * h; return `${x},${y}`; }).join(' '); - el.innerHTML = `
DISK TREND
`; + el.innerHTML = ``; } const origUpdateOverview = updateOverview;