From 696c70943891ca00d7cacc77cb7cb033c6e6c40e Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Fri, 8 May 2026 23:33:05 +0200 Subject: [PATCH] only show folder icons on folders with image thumbnails --- copyparty/web/browser.css | 2 +- copyparty/web/browser.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 6ec8a717..3d2ffb3b 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1057,7 +1057,7 @@ tr.play td:nth-child(1) a { animation: rotate 10s linear infinite; } } -html:not(.e) #ggrid>a.dir:before { +html:not(.e) #ggrid>a.thumbed.dir:before { content: '📂'; } #ggrid>a.dir>span { diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 32d41032..dc0ab668 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6668,6 +6668,7 @@ var thegrid = (function () { function th_onload(el) { + clmod(el.parentElement.parentElement, 'thumbed', true) el.style.position = 'static' el.style.opacity = '1' el.style.height = '';