From 07306f3b4bffc164ee6a10903d93062ac8d24532 Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Thu, 9 Dec 2021 10:21:15 -0800 Subject: [PATCH] Fix iPad pro SignInPageLayout --- src/components/withWindowDimensions.js | 2 +- src/pages/signin/SignInPage.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/withWindowDimensions.js b/src/components/withWindowDimensions.js index bb73f643d9a2..f156757394b6 100644 --- a/src/components/withWindowDimensions.js +++ b/src/components/withWindowDimensions.js @@ -71,7 +71,7 @@ export default function (WrappedComponent) { onDimensionChange(newDimensions) { const {window} = newDimensions; const isSmallScreenWidth = window.width <= variables.mobileResponsiveWidthBreakpoint; - const isMediumScreenWidth = !isSmallScreenWidth && window.width <= variables.mediumScreenResponsiveWidthBreakpoint; + const isMediumScreenWidth = !isSmallScreenWidth && window.width <= variables.tabletResponsiveWidthBreakpoint; this.setState({ windowHeight: window.height, windowWidth: window.width, diff --git a/src/pages/signin/SignInPage.js b/src/pages/signin/SignInPage.js index 538abbf79b2c..5d98a89d4ef0 100644 --- a/src/pages/signin/SignInPage.js +++ b/src/pages/signin/SignInPage.js @@ -85,7 +85,6 @@ class SignInPage extends Component { {/* LoginForm and PasswordForm must use the isVisible prop. This keeps them mounted, but visually hidden so that password managers can access the values. Conditionally rendering these components will break this feature. */}