mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
more improvements to wG folder behavior
This commit is contained in:
parent
7bddd9838c
commit
943f813734
|
|
@ -2861,7 +2861,14 @@ html.c .modalcontent {
|
|||
margin: 0 -.4em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.modal.unmodal {
|
||||
position: fixed;
|
||||
.modalcontent{
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* upload.css */
|
||||
|
|
|
|||
|
|
@ -2433,7 +2433,12 @@ var widget = (function () {
|
|||
}
|
||||
};
|
||||
r.setvis = function () {
|
||||
widget.style.display = !has(perms, "read") || showfile.abrt ? 'none' : '';
|
||||
var display = !has(perms, "read") || showfile.abrt ? 'none' : '';
|
||||
ebi('wtico').style.display =
|
||||
ebi('wtoggle').style.display =
|
||||
ebi('widgeti').style.display =
|
||||
ebi('np_inf').style.display =
|
||||
display;
|
||||
};
|
||||
wtico.onclick = function (e) {
|
||||
if (!touchmode)
|
||||
|
|
@ -8836,13 +8841,11 @@ function apply_perms(res) {
|
|||
|
||||
widget.setvis();
|
||||
thegrid.setvis();
|
||||
if (!have_read && have_write){
|
||||
ebi('up2k').style.position = 'initial';
|
||||
ebi('up_content').style.width = '100%';
|
||||
ebi('up_content').style.margin = '0';
|
||||
|
||||
var up_only = !have_read && have_write;
|
||||
if (up_only)
|
||||
goto('up2k');
|
||||
}
|
||||
clmod(ebi('up2k'), 'unmodal', up_only);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue