solving linter issue without breaking the fix.
This commit is contained in:
+3
-3
@@ -292,11 +292,11 @@ const Logic = {
|
||||
document.querySelector(this.getPanelSelector(this._panels[panel])).classList.remove("hide");
|
||||
window.setTimeout(function () {
|
||||
//sometimes this executes before the window is there and window.innerWidth returns undefined
|
||||
const width = window.innerWidth;
|
||||
if (width > 300) {
|
||||
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", "125px");
|
||||
root.style.setProperty("--overflow-size", difference + "px");
|
||||
root.style.setProperty("--icon-fit", "12");
|
||||
}
|
||||
}, 200);
|
||||
|
||||
Reference in New Issue
Block a user