Fix login width

This commit is contained in:
Gucheng Wang
2023-03-02 20:49:13 +08:00
parent 8696b08db2
commit e50c832ff9

View File

@ -378,6 +378,13 @@ class LoginPage extends React.Component {
}
if (application.enablePassword) {
let loginWidth = 320;
if (Setting.getLanguage() === "fr") {
loginWidth += 10;
} else if (Setting.getLanguage() === "es") {
loginWidth += 40;
}
return (
<Form
name="normal_login"
@ -391,7 +398,7 @@ class LoginPage extends React.Component {
onFinish={(values) => {
this.onFinish(values);
}}
style={{width: "300px"}}
style={{width: `${loginWidth}px`}}
size="large"
ref={this.form}
>