From 2ed853469817702f43b45659e266ddca90ae11ee Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Tue, 12 May 2026 00:07:26 +0200 Subject: [PATCH] move some of the thumbed logic to css --- copyparty/web/browser.css | 4 ++++ copyparty/web/browser.js | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 9bb8762f..0b0bf3db 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1026,6 +1026,10 @@ tr.play td:nth-child(1) a { .th_ext { display: none; } + img { + position: static; + opacity: 1; + } } .sel .gselchk { display: block; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 6f896f39..3d2a262f 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6729,14 +6729,12 @@ window.thegrid = (function () { function th_onload(el) { set_loaded(el, true, false) - el.style.position = 'static' - el.style.opacity = '1' - el.style.height = '' } function set_loaded(el, state, dblcheck) { if(state && dblcheck) { - testImage(el) + testImage(el); + return; } var p = el.parentElement.parentElement clmod(p, 'thumbed', state)