From a9919df5afd5e4c34b37c326e13f98aa2b856004 Mon Sep 17 00:00:00 2001 From: icxes Date: Mon, 12 Sep 2022 00:00:51 +0300 Subject: [PATCH] change justify-content depending on whether sidebar is open --- copyparty/web/browser.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index b11f9603..d66db1e7 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -4536,6 +4536,9 @@ var treectl = (function () { ebi('path').style.display = 'inline-block'; return; } + if (entreed) { + ebi('ggrid').style.justifyContent = 'space-between'; + } ebi('path').style.display = 'none'; ebi('tree').style.display = 'block'; window.addEventListener('scroll', onscroll); @@ -4554,6 +4557,9 @@ var treectl = (function () { r.hide = function () { r.hidden = true; + if (!entreed) { + ebi('ggrid').style.justifyContent = 'center'; + } ebi('path').style.display = 'none'; ebi('tree').style.display = 'none'; ebi('wrap').style.marginLeft = '';