From 26c173e5d72caf42f104a31d118b97674aae4bc6 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Sun, 17 May 2026 16:58:22 +0200 Subject: [PATCH] fix tempsel state when navigating folders --- copyparty/web/browser.css | 5 ++++- copyparty/web/browser.js | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index f6917092..a9582062 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -5296,7 +5296,7 @@ html.f { line-height: 1.45em; } .hl { - width: calc(100% - 4.5em); + width: calc(100% - 4.7em); } .hl::after { content: ""; @@ -5543,6 +5543,9 @@ html.fy { background: none; border-color: transparent; } + #doc { + background: var(--bg); + } } html.f.unfun { #ops a { diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index d20ebacf..97debfce 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6405,6 +6405,7 @@ window.thegrid = (function () { return; var ths = QSA('#ggrid>a'); + var anysel = false; for (var a = 0, aa = ths.length; a < aa; a++) { var ref = ths[a].getAttribute('ref'); @@ -6414,7 +6415,10 @@ window.thegrid = (function () { ths[a].className = cl; var chk = ths[a].getElementsByTagName('input')[0]; - if(chk) chk.checked = cl.match(/\bsel\b/); + if(chk) { + chk.checked = cl.match(/\bsel\b/); + anysel = anysel || chk.checked; + } } var sp = ['unsearch', 'moar']; @@ -6427,6 +6431,9 @@ window.thegrid = (function () { ebi(sp[a]).click(); }; })(a); + + r.tempsel = TOUCH && anysel; + clmod(ebi('gridsel'), 'temp', r.tempsel); }; r.tippen = function () {