This commit is contained in:
Kendall Werts 2019-08-27 10:42:58 -05:00
parent acff80a234
commit 46349e1a70
2 changed files with 5 additions and 6 deletions

View file

@ -47,7 +47,7 @@ body {
--icon-button-size: calc(calc(var(--block-line-separation-size) * 2) + 1.66rem); /* 20px */ --icon-button-size: calc(calc(var(--block-line-separation-size) * 2) + 1.66rem); /* 20px */
--column-panel-inline-size: calc(var(--overflow-size) + 268px); --column-panel-inline-size: calc(var(--overflow-size) + 268px);
--inactive-opacity: 0.3; --inactive-opacity: 0.3;
--overflow-size: 0px; --overflow-size: 0;
--icon-fit: 8; --icon-fit: 8;
} }

View file

@ -272,7 +272,6 @@ const Logic = {
throw new Error("Something really bad happened. Unknown panel: " + panel); throw new Error("Something really bad happened. Unknown panel: " + panel);
} }
this._previousPanel = this._currentPanel; this._previousPanel = this._currentPanel;
this._currentPanel = panel; this._currentPanel = panel;
@ -293,12 +292,12 @@ const Logic = {
document.querySelector(this.getPanelSelector(this._panels[panel])).classList.remove("hide"); document.querySelector(this.getPanelSelector(this._panels[panel])).classList.remove("hide");
window.setTimeout(function () { window.setTimeout(function () {
//sometimes this executes before the window is there and window.innerWidth returns undefined //sometimes this executes before the window is there and window.innerWidth returns undefined
var width = window.innerWidth; const width = window.innerWidth;
if (width > 300) { if (width > 300) {
//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
var root = document.documentElement; const root = document.documentElement;
root.style.setProperty('--overflow-size', "125px"); root.style.setProperty("--overflow-size", "125px");
root.style.setProperty('--icon-fit', "12"); root.style.setProperty("--icon-fit", "12");
} }
}, 200); }, 200);
}, },