From b47635150a8ae2cd2402862d16a278af9e565081 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 31 Jan 2023 21:02:58 +0000 Subject: [PATCH] shove #files aside while prologue sandbox is loading --- copyparty/web/browser.css | 3 +++ copyparty/web/browser.js | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 6d73c4bd..abe5dca1 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -811,6 +811,9 @@ html.y #path a:hover { .logue>iframe.focus { box-shadow: 0 0 .1em .1em var(--a); } +#pro.logue>iframe { + height: 100vh; +} #pro.logue { margin-bottom: .8em; } diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index e19b8c8b..97d23f91 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -5761,7 +5761,6 @@ var wfp_debounce = (function () { r.n = 0; clearTimeout(r.t); ebi('wfp').style.opacity = 'unset'; - ebi('wrap').style.opacity = 'unset'; } }; r.reset = function () { @@ -6760,11 +6759,8 @@ function sandbox(tgt, rules, cls, html) { hash = location.hash, want = ''; - if (!cls) { + if (!cls) wfp_debounce.hide(); - if (tid == 'pro') - ebi('wrap').style.opacity = 0.2; - } if (hash.startsWith('#md-')) want = hash.slice(1);