mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
change justify-content depending on whether sidebar is open
This commit is contained in:
parent
b0af31ac35
commit
a9919df5af
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in a new issue