From c85bbb3b204acb61526aeabb20dd4677c6ecc7ff Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 1 Mar 2023 15:45:29 -0800 Subject: [PATCH] Fix window-height css variable --- stylesheets/_titlebar.scss | 2 +- stylesheets/components/TitleBarContainer.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stylesheets/_titlebar.scss b/stylesheets/_titlebar.scss index b1ba91cc995f..b635c120fd5e 100644 --- a/stylesheets/_titlebar.scss +++ b/stylesheets/_titlebar.scss @@ -30,7 +30,7 @@ body { --titlebar-height: calc(28px / var(--zoom-factor)); --window-width: calc(100vw - 2 * var(--window-border)); --window-height: calc( - 100vh - var(--titlebar-height) - 2 * var(--window-border) + 100vh - var(--titlebar-height) - var(--window-border) ); } } diff --git a/stylesheets/components/TitleBarContainer.scss b/stylesheets/components/TitleBarContainer.scss index 97dce5dbfae9..7357c02e5016 100644 --- a/stylesheets/components/TitleBarContainer.scss +++ b/stylesheets/components/TitleBarContainer.scss @@ -60,7 +60,7 @@ } &__content { - height: calc(100vh - var(--titlebar-height)); + height: var(--window-height); position: relative; overflow: hidden; }