Fix UI when Popup is in overflow menu
This commit is contained in:
parent
b552d41772
commit
f9ddd0f0a4
2 changed files with 15 additions and 2 deletions
|
@ -62,6 +62,19 @@ body {
|
||||||
color: var(--text-grey);
|
color: var(--text-grey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overflow body,
|
||||||
|
.overflow html {
|
||||||
|
inline-size: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflow .container-panel {
|
||||||
|
min-block-size: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflow .panel.onboarding {
|
||||||
|
margin-block: auto;
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
block-size: 100%; /* Bugfix: issue 948 */
|
block-size: 100%; /* Bugfix: issue 948 */
|
||||||
|
|
|
@ -2159,8 +2159,8 @@ window.addEventListener("resize", function () {
|
||||||
const difference = window.innerWidth - document.body.offsetWidth;
|
const difference = window.innerWidth - document.body.offsetWidth;
|
||||||
if (difference > 2) {
|
if (difference > 2) {
|
||||||
//if popup is in the overflow menu, window will be larger than 300px
|
//if popup is in the overflow menu, window will be larger than 300px
|
||||||
|
|
||||||
const root = document.documentElement;
|
const root = document.documentElement;
|
||||||
root.style.setProperty("--overflow-size", difference + "px");
|
root.classList.add("overflow");
|
||||||
root.style.setProperty("--icon-fit", "12");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue