diff --git a/web/src/features/auth/LoginView.vue b/web/src/features/auth/LoginView.vue index f441db7..ea67e91 100644 --- a/web/src/features/auth/LoginView.vue +++ b/web/src/features/auth/LoginView.vue @@ -152,29 +152,27 @@ async function finishNqi() {

{{ purpose === "pool" ? "添加账号" : "DecomEval" }}

- 这个数据库已经安装过,请使用原来的管理员账号登录。 - {{ errorText }} -
+ 这个数据库已经安装过,请使用原来的管理员账号登录。 + {{ errorText }} - + - + -
-
- 发送短信验证码 -
- {{ mode === "local" || captchaUrl ? "登录" : "继续" }} +
+ 发送短信验证码 + {{ mode === "local" || captchaUrl ? "登录" : "继续" }} +
diff --git a/web/src/styles.css b/web/src/styles.css index 49eee28..4fc9910 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -108,21 +108,25 @@ button, input, select { font: inherit; } } .login-form { display: grid; - grid-template-columns: 112px minmax(0, 1fr); - column-gap: 12px; - row-gap: 8px; + grid-template-columns: 72px minmax(0, 1fr); + gap: 12px 16px; align-items: center; } -.login-form .form-grid { display: contents; } -.login-form .n-alert, -.login-form .login-secondary { grid-column: 1 / -1; } -.login-form .gate-submit.n-button { +.login-form .n-alert { grid-column: 1 / -1; } +.login-field { min-width: 0; } +.login-field .n-input { width: 100%; } +.login-submit { grid-column: 2; + display: flex; + flex-direction: column; + gap: 12px; + min-width: 0; +} +.login-submit .n-button { width: 100%; height: 40px; - margin-top: 16px; - justify-self: stretch; } +.login-submit .gate-submit.n-button { margin-top: 4px; } .gate-brand { display: flex; gap: 14px;