Skip to content

Commit

Permalink
fix: consider whether alert is present in height calc
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed Jun 18, 2022
1 parent f185dec commit 5698641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/RevoltApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5698641

Please sign in to comment.