From e50c832ff95e2d35d187ca86c8a1e5598d8918c9 Mon Sep 17 00:00:00 2001 From: Gucheng Wang Date: Thu, 2 Mar 2023 20:49:13 +0800 Subject: [PATCH] Fix login width --- web/src/auth/LoginPage.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index c5614ab9..88646b02 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -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 (
{ this.onFinish(values); }} - style={{width: "300px"}} + style={{width: `${loginWidth}px`}} size="large" ref={this.form} >