fix: hovering .. no longer clears the preview pane

the .. row has no image/video/text of its own, so the preview fell through to the blank-everything branch — most noticeable on video projects, where the video would stop and vanish. now non-preview rows just leave whatever was last shown in place.
This commit is contained in:
kgva CMS
2026-08-11 19:01:07 +00:00
parent 68474c5940
commit f318ef9a2f
+2 -1
View File
@@ -49,7 +49,8 @@
if (src) { showImg(src); hideTexts(); hidePlayer(); } if (src) { showImg(src); hideTexts(); hidePlayer(); }
else if (vid) { if (img) img.hidden = true; hideTexts(); showPlayer(); } else if (vid) { if (img) img.hidden = true; hideTexts(); showPlayer(); }
else if (tkey) { if (img) img.hidden = true; hidePlayer(); showText(tkey); } else if (tkey) { if (img) img.hidden = true; hidePlayer(); showText(tkey); }
else { if (img) img.hidden = true; hideTexts(); hidePlayer(); } // rows with no preview of their own (".." above all) leave whatever was
// last shown in place instead of blanking the pane out
if (cap) { if (cap) {
var n = a.querySelector(".tui__name"); var n = a.querySelector(".tui__name");