diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 2b045b34..bbb3924a 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -4703,11 +4703,10 @@ html.e #tree_footer { background: transparent; } html.e #wrap { - transform: translateX(calc((var(--negative-space) * 2) - .2em)); padding-right: var(--negative-space); position: relative; - margin-right: calc((var(--negative-space) * 2) - .1em); - margin-left: -6px; + margin-right: 0; + margin-left: -10px; margin-top: 0; /*overflow-x: auto; fix for OOB table when screen space is limited (mobile), but removes sticky header*/ } diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index e89446c9..aa1ade2d 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1604,7 +1604,8 @@ function goto(dest) { clmod(document.documentElement, 'op_open', dest); // enables the use of keyboard page nav on modals - clmod(document.documentElement, 'noscroll', QS('.modal.vis') && QS('.modal.vis').style.position == 'fixed'); + var a_modal = QS('.modal.vis'); + clmod(document.documentElement, 'noscroll', a_modal && window.getComputedStyle(a_modal).position == 'fixed'); if (treectl) treectl.onscroll();