From c962d2544f185aebc50e715eb3bb33491b1356da Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 20 Sep 2022 20:07:02 +0200 Subject: [PATCH] ux --- copyparty/web/browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 65d9d475..26d8e098 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -4591,6 +4591,8 @@ function aligngriditems() { var gridwidth = ebi('ggrid').clientWidth; var griditemcount = ebi('ggrid').children.length; var totalgapwidth = em2px * griditemcount; + if (/b/.test(themen + '')) + totalgapwidth *= 2.8; if (((griditemcount * em2px) * gridsz) + totalgapwidth < gridwidth) { ebi('ggrid').style.justifyContent = 'left'; @@ -4671,7 +4673,6 @@ var treectl = (function () { r.hide(); ebi('path').style.display = ''; - ebi('treeul').innerHTML = ''; } r.hide = function () {