mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-24 22:35:43 +02:00
[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:
parent
83e75cc572
commit
37209ef3fc
@ -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);
|
||||
|
@ -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);
|
@ -10,6 +10,7 @@
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
&__captcha {
|
||||
margin: 10px auto 20px;
|
||||
height: 78px;
|
||||
|
@ -3,7 +3,6 @@
|
||||
display: inline-block;
|
||||
|
||||
&--widget {
|
||||
-webkit-perspective: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
-webkit-transform: translate3d(0,0,0);
|
||||
visibility: visible;
|
||||
|
Loading…
x
Reference in New Issue
Block a user