From 19f8b5291ece2e57df276e7a6fad287f9727da26 Mon Sep 17 00:00:00 2001 From: iRedTea Date: Wed, 14 Oct 2026 18:46:56 +0300 Subject: [PATCH] fix: no arrow on the sorted column --- internal/server/web/templates/files.html | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/internal/server/web/templates/files.html b/internal/server/web/templates/files.html index 4625aa1..f85b840 100644 --- a/internal/server/web/templates/files.html +++ b/internal/server/web/templates/files.html @@ -48,7 +48,6 @@ /* Sortable headers: a click sorts by the column, a second one turns it round. */ table.fm th.srt { cursor:pointer; user-select:none; white-space:nowrap; } table.fm th.srt:hover { color:var(--text); } - table.fm th.srt i { font-style:normal; display:inline-block; width:12px; margin-left:4px; color:var(--accent); font-size:10px; } table.fm .c-sz { width:120px; } table.fm .c-mt { width:160px; } table.fm .c-act { width:160px; } @@ -212,8 +211,8 @@ - - + +
ИмяРазмерИзменёнИмяРазмерИзменён
@@ -354,12 +353,6 @@ return (d || byName(a, b)) * s.dir; }); } - function showSort() { - const s = getSort(); - document.querySelectorAll('table.fm th.srt').forEach(th => { - th.querySelector('i').textContent = th.dataset.sort === s.by ? (s.dir > 0 ? '▲' : '▼') : ''; - }); - } document.querySelectorAll('table.fm th.srt').forEach(th => th.onclick = () => { const s = getSort(), by = th.dataset.sort; // A new column starts the way it is most often wanted: names A to Z, @@ -369,7 +362,6 @@ }); function render() { - showSort(); const tb = $('list'); tb.innerHTML = ''; updateSel(); for (const e of sorted()) {