mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 05:02:28 -06:00
fix modals after moving them inside wrap div
This commit is contained in:
parent
ae5a0be3bd
commit
87fd073199
|
|
@ -4703,11 +4703,10 @@ html.e #tree_footer {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
html.e #wrap {
|
html.e #wrap {
|
||||||
transform: translateX(calc((var(--negative-space) * 2) - .2em));
|
|
||||||
padding-right: var(--negative-space);
|
padding-right: var(--negative-space);
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: calc((var(--negative-space) * 2) - .1em);
|
margin-right: 0;
|
||||||
margin-left: -6px;
|
margin-left: -10px;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
/*overflow-x: auto; fix for OOB table when screen space is limited (mobile), but removes sticky header*/
|
/*overflow-x: auto; fix for OOB table when screen space is limited (mobile), but removes sticky header*/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1604,7 +1604,8 @@ function goto(dest) {
|
||||||
|
|
||||||
clmod(document.documentElement, 'op_open', dest);
|
clmod(document.documentElement, 'op_open', dest);
|
||||||
// enables the use of keyboard page nav on modals
|
// 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)
|
if (treectl)
|
||||||
treectl.onscroll();
|
treectl.onscroll();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue