mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
fix: consider whether alert is present in height calc
This commit is contained in:
@@ -149,11 +149,11 @@ export default function App() {
|
|||||||
<OverlappingPanels
|
<OverlappingPanels
|
||||||
width="100vw"
|
width="100vw"
|
||||||
height={
|
height={
|
||||||
(statusBar ? "calc(" : "") +
|
(alert && statusBar ? "calc(" : "") +
|
||||||
(window.isNative && !window.native.getConfig().frame
|
(window.isNative && !window.native.getConfig().frame
|
||||||
? "calc(var(--app-height) - var(--titlebar-height))"
|
? "calc(var(--app-height) - var(--titlebar-height))"
|
||||||
: "var(--app-height)") +
|
: "var(--app-height)") +
|
||||||
(statusBar ? " - 40px)" : "")
|
(alert && statusBar ? " - 40px)" : "")
|
||||||
}
|
}
|
||||||
leftPanel={
|
leftPanel={
|
||||||
inSpecial
|
inSpecial
|
||||||
|
|||||||
Reference in New Issue
Block a user