diff --git a/src/pages/signin/SignInPageLayout/SignInPageContent.js b/src/pages/signin/SignInPageLayout/SignInPageContent.js index f787d197fe7d..4006d65a0093 100755 --- a/src/pages/signin/SignInPageLayout/SignInPageContent.js +++ b/src/pages/signin/SignInPageLayout/SignInPageContent.js @@ -55,7 +55,8 @@ const SignInPageContent = props => ( { ); + const hasRedirect = !_.isEmpty(backgroundStyle.redirectUri); + + const graphicLayout = ( + { + Link.openExternalLink(backgroundStyle.redirectUri); + }} + disabled={!hasRedirect} + > + + + ); + if (props.isSmallScreenWidth) { return content; } - const hasRedirect = !_.isEmpty(backgroundStyle.redirectUri); + if (props.isMediumScreenWidth && props.windowHeight >= variables.minHeigthToShowGraphics) { + return ( + + {graphicLayout} + + {content} + + + ); + } return ( {content} - { - Link.openExternalLink(backgroundStyle.redirectUri); - }} - disabled={!hasRedirect} - > - - + {graphicLayout} ); diff --git a/src/styles/variables.js b/src/styles/variables.js index 5ffd6bf29131..2641a5b78dcc 100644 --- a/src/styles/variables.js +++ b/src/styles/variables.js @@ -44,4 +44,5 @@ export default { tooltipzIndex: 10050, gutterWidth: 16, popoverMenuShadow: '0px 4px 12px 0px rgba(0, 0, 0, 0.06)', + minHeightToShowGraphics: 854, // below this height UI was broken on login form layout as there isn't enough height to show forma and graphics. };