From 943f8137344951be652f1be08ddd37a87306b53f Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Sun, 3 May 2026 23:57:33 +0200 Subject: [PATCH] more improvements to wG folder behavior --- copyparty/web/browser.css | 9 ++++++++- copyparty/web/browser.js | 15 +++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index cbf6d42d..97005fb0 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -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 */ diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 5d118d56..65647f0d 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -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); }