fix modals after moving them inside wrap div

This commit is contained in:
Til Schmitter 2026-05-04 19:19:38 +02:00
parent ae5a0be3bd
commit 87fd073199
2 changed files with 4 additions and 4 deletions

View file

@ -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*/
}

View file

@ -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();