diff --git a/src/pages/signin/SignInPageLayout/index.js b/src/pages/signin/SignInPageLayout/index.js index ebe72e30ee95..0f813c55dd25 100644 --- a/src/pages/signin/SignInPageLayout/index.js +++ b/src/pages/signin/SignInPageLayout/index.js @@ -58,26 +58,26 @@ const SignInPageLayout = (props) => { ); - if (props.isSmallScreenWidth) { - return content; - } + const containerStyles = []; + const contentContainerStyles = [styles.flex1]; - if (props.isMediumScreenWidth && props.windowHeight >= variables.minHeightToShowGraphics) { - return ( - - {graphicLayout} - - {content} - - - ); + const isLongMediumScreenWidth = props.isMediumScreenWidth && props.windowHeight >= variables.minHeightToShowGraphics; + + if (props.isSmallScreenWidth) { + containerStyles.push(styles.flex1); + } else if (isLongMediumScreenWidth) { + containerStyles.push(styles.dFlex, styles.signInPageInner, styles.flexColumnReverse, styles.justifyContentBetween); + } else { + containerStyles.push(styles.flex1, styles.signInPageInner); + contentContainerStyles.push(styles.flexRow); } return ( - - + + {isLongMediumScreenWidth && graphicLayout} + {content} - {graphicLayout} + {!props.isSmallScreenWidth && !isLongMediumScreenWidth && graphicLayout} );