mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-25 23:05:22 +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() {
|
renderLoginCaptcha() {
|
||||||
return(
|
return(
|
||||||
<div className="admin-login-page__captcha">
|
<div className={`main-home-page__${this.props.sitekey ? "captcha" : "no-captcha"}`}>
|
||||||
<Captcha ref="captcha" />
|
<Captcha ref="captcha" />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@ -250,6 +250,7 @@ class AdminLoginPage extends React.Component {
|
|||||||
|
|
||||||
export default connect((store) => {
|
export default connect((store) => {
|
||||||
return {
|
return {
|
||||||
session: store.session
|
session: store.session,
|
||||||
|
sitekey: store.config.reCaptchaKey
|
||||||
};
|
};
|
||||||
})(AdminLoginPage);
|
})(AdminLoginPage);
|
||||||
|
@ -84,7 +84,7 @@ class MainHomePageLoginWidget extends React.Component {
|
|||||||
|
|
||||||
renderLoginCaptcha() {
|
renderLoginCaptcha() {
|
||||||
return(
|
return(
|
||||||
<div className="main-home-page__captcha">
|
<div className={`main-home-page__${this.props.sitekey ? "captcha" : "no-captcha"}`}>
|
||||||
<Captcha ref="captcha" />
|
<Captcha ref="captcha" />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@ -286,6 +286,7 @@ class MainHomePageLoginWidget extends React.Component {
|
|||||||
|
|
||||||
export default connect((store) => {
|
export default connect((store) => {
|
||||||
return {
|
return {
|
||||||
session: store.session
|
session: store.session,
|
||||||
|
sitekey: store.config.reCaptchaKey
|
||||||
};
|
};
|
||||||
})(MainHomePageLoginWidget);
|
})(MainHomePageLoginWidget);
|
@ -10,6 +10,7 @@
|
|||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__captcha {
|
&__captcha {
|
||||||
margin: 10px auto 20px;
|
margin: 10px auto 20px;
|
||||||
height: 78px;
|
height: 78px;
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
&--widget {
|
&--widget {
|
||||||
-webkit-perspective: 0;
|
|
||||||
-webkit-backface-visibility: hidden;
|
-webkit-backface-visibility: hidden;
|
||||||
-webkit-transform: translate3d(0,0,0);
|
-webkit-transform: translate3d(0,0,0);
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user