move some of the thumbed logic to css

This commit is contained in:
Til Schmitter 2026-05-12 00:07:26 +02:00
parent bb48914d14
commit 2ed8534698
2 changed files with 6 additions and 4 deletions

View file

@ -1026,6 +1026,10 @@ tr.play td:nth-child(1) a {
.th_ext {
display: none;
}
img {
position: static;
opacity: 1;
}
}
.sel .gselchk {
display: block;

View file

@ -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)