change justify-content depending on whether sidebar is open

This commit is contained in:
icxes 2022-09-12 00:00:51 +03:00 committed by ed
parent b0af31ac35
commit a9919df5af

View file

@ -4536,6 +4536,9 @@ var treectl = (function () {
ebi('path').style.display = 'inline-block'; ebi('path').style.display = 'inline-block';
return; return;
} }
if (entreed) {
ebi('ggrid').style.justifyContent = 'space-between';
}
ebi('path').style.display = 'none'; ebi('path').style.display = 'none';
ebi('tree').style.display = 'block'; ebi('tree').style.display = 'block';
window.addEventListener('scroll', onscroll); window.addEventListener('scroll', onscroll);
@ -4554,6 +4557,9 @@ var treectl = (function () {
r.hide = function () { r.hide = function () {
r.hidden = true; r.hidden = true;
if (!entreed) {
ebi('ggrid').style.justifyContent = 'center';
}
ebi('path').style.display = 'none'; ebi('path').style.display = 'none';
ebi('tree').style.display = 'none'; ebi('tree').style.display = 'none';
ebi('wrap').style.marginLeft = ''; ebi('wrap').style.marginLeft = '';