From afdc4b40340e5cd4e7519a88165bf535aad47227 Mon Sep 17 00:00:00 2001 From: Daniel Doglas Silva Date: Mon, 6 Dec 2021 15:17:26 -0300 Subject: [PATCH] added properties to fix layout on ipad --- src/components/SVGImage/index.js | 1 + src/components/SVGImage/propTypes.js | 3 +++ src/pages/signin/SignInPageLayout/SignInPageLayoutWide.js | 1 + 3 files changed, 5 insertions(+) diff --git a/src/components/SVGImage/index.js b/src/components/SVGImage/index.js index aaddf8e853a0..05fcf35bf3b7 100644 --- a/src/components/SVGImage/index.js +++ b/src/components/SVGImage/index.js @@ -7,6 +7,7 @@ const SVGImage = props => ( ); diff --git a/src/components/SVGImage/propTypes.js b/src/components/SVGImage/propTypes.js index a98dab91eb64..2b2e04972ceb 100644 --- a/src/components/SVGImage/propTypes.js +++ b/src/components/SVGImage/propTypes.js @@ -9,6 +9,9 @@ const propTypes = { /** The height of the image. */ height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, + + /** The resize mode of the image. */ + resizeMode: PropTypes.oneOf('cover', 'contain', 'stretch', 'repeat', 'center'), }; export default propTypes; diff --git a/src/pages/signin/SignInPageLayout/SignInPageLayoutWide.js b/src/pages/signin/SignInPageLayout/SignInPageLayoutWide.js index ee6287cec9d8..6692e762bcf2 100755 --- a/src/pages/signin/SignInPageLayout/SignInPageLayoutWide.js +++ b/src/pages/signin/SignInPageLayout/SignInPageLayoutWide.js @@ -73,6 +73,7 @@ const SignInPageLayoutWide = props => ( width="100%" height="100%" src={backgroundStyle.backgroundImageUri} + resizeMode={props.isMediumScreenWidth ? 'contain' : 'cover'} />