[DEV-206] Fix bug in login widget transition (#1120)

* fix widget height issue

* Fix bug in login widget transition

Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>
This commit is contained in:
Joel Elias Méndez 2021-12-30 14:57:26 -03:00 committed by GitHub
parent 83e75cc572
commit 37209ef3fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -96,7 +96,7 @@ class AdminLoginPage extends React.Component {
renderLoginCaptcha() {
return(
<div className="admin-login-page__captcha">
<div className={`main-home-page__${this.props.sitekey ? "captcha" : "no-captcha"}`}>
<Captcha ref="captcha" />
</div>
)
@ -250,6 +250,7 @@ class AdminLoginPage extends React.Component {
export default connect((store) => {
return {
session: store.session
session: store.session,
sitekey: store.config.reCaptchaKey
};
})(AdminLoginPage);

View File

@ -84,7 +84,7 @@ class MainHomePageLoginWidget extends React.Component {
renderLoginCaptcha() {
return(
<div className="main-home-page__captcha">
<div className={`main-home-page__${this.props.sitekey ? "captcha" : "no-captcha"}`}>
<Captcha ref="captcha" />
</div>
)
@ -286,6 +286,7 @@ class MainHomePageLoginWidget extends React.Component {
export default connect((store) => {
return {
session: store.session
session: store.session,
sitekey: store.config.reCaptchaKey
};
})(MainHomePageLoginWidget);

View File

@ -10,6 +10,7 @@
margin-left: 20px;
margin-right: 20px;
}
&__captcha {
margin: 10px auto 20px;
height: 78px;

View File

@ -3,7 +3,6 @@
display: inline-block;
&--widget {
-webkit-perspective: 0;
-webkit-backface-visibility: hidden;
-webkit-transform: translate3d(0,0,0);
visibility: visible;