Fix UI when Popup is in overflow menu

This commit is contained in:
Lesley Norton
2021-10-22 22:24:39 -05:00
parent b552d41772
commit f9ddd0f0a4
2 changed files with 15 additions and 2 deletions
+2 -2
View File
@@ -2159,8 +2159,8 @@ window.addEventListener("resize", function () {
const difference = window.innerWidth - document.body.offsetWidth;
if (difference > 2) {
//if popup is in the overflow menu, window will be larger than 300px
const root = document.documentElement;
root.style.setProperty("--overflow-size", difference + "px");
root.style.setProperty("--icon-fit", "12");
root.classList.add("overflow");
}
});