From 86d3ae763d0ea0f2c4b6959f3e1e351eb6ea3517 Mon Sep 17 00:00:00 2001 From: Rafael Date: Tue, 20 Jul 2021 21:34:29 -0300 Subject: [PATCH 1/3] fixes style for hidden element --- src/components/TextInputAutoWidth.js | 18 ++++++++++-------- src/styles/styles.js | 3 +-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/components/TextInputAutoWidth.js b/src/components/TextInputAutoWidth.js index 9dbc83537cd6..18a04bb9e335 100644 --- a/src/components/TextInputAutoWidth.js +++ b/src/components/TextInputAutoWidth.js @@ -42,13 +42,15 @@ class TextInputAutoWidth extends React.Component { render() { const propsWithoutStyles = _.omit(this.props, ['inputStyle', 'textStyle']); return ( - - + <> + + + {/* Text input component doesn't support auto grow by default. We're using a hidden text input to achieve that. @@ -61,7 +63,7 @@ class TextInputAutoWidth extends React.Component { > {this.props.value || this.props.placeholder} - + ); } } diff --git a/src/styles/styles.js b/src/styles/styles.js index e11f4ee0c920..8a33e4e24941 100644 --- a/src/styles/styles.js +++ b/src/styles/styles.js @@ -1641,11 +1641,10 @@ const styles = { }, hiddenElementOutsideOfWindow: { - position: 'fixed', + position: 'absolute', top: 0, left: 0, opacity: 0, - transform: 'translateX(-100%)', }, growlNotificationWrapper: { From 62e3786d4085218bc6a92dd866864ab157b89a75 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 21 Jul 2021 23:21:39 -0300 Subject: [PATCH 2/3] avoid keyboard, moves error message --- src/pages/signin/LoginForm.js | 18 +++---- src/pages/signin/PasswordForm.js | 18 +++++-- src/pages/signin/ResendValidationForm.js | 11 ++-- src/pages/signin/SignInPage.js | 15 +----- .../SignInPageLayoutNarrow.js | 53 ++++++++++--------- 5 files changed, 55 insertions(+), 60 deletions(-) diff --git a/src/pages/signin/LoginForm.js b/src/pages/signin/LoginForm.js index 547c43760fe9..d6f7d8463830 100755 --- a/src/pages/signin/LoginForm.js +++ b/src/pages/signin/LoginForm.js @@ -88,15 +88,6 @@ class LoginForm extends React.Component { autoFocus={canFocusInputOnScreenFocus()} /> - -