fix: consider whether alert is present in height calc

This commit is contained in:
Paul Makles 2022-06-18 17:05:05 +01:00
parent f185dec461
commit 569864167e

View file

@ -149,11 +149,11 @@ export default function App() {
<OverlappingPanels
width="100vw"
height={
(statusBar ? "calc(" : "") +
(alert && statusBar ? "calc(" : "") +
(window.isNative && !window.native.getConfig().frame
? "calc(var(--app-height) - var(--titlebar-height))"
: "var(--app-height)") +
(statusBar ? " - 40px)" : "")
(alert && statusBar ? " - 40px)" : "")
}
leftPanel={
inSpecial