fix: 登录按钮与输入框左右对齐
This commit is contained in:
@@ -151,7 +151,7 @@ async function finishNqi() {
|
||||
<div class="brand-mark" aria-hidden="true">D</div>
|
||||
<h1>{{ purpose === "pool" ? "添加账号" : "DecomEval" }}</h1>
|
||||
</div>
|
||||
<form @submit.prevent="submitLogin">
|
||||
<form class="login-form" @submit.prevent="submitLogin">
|
||||
<n-alert v-if="route.query.notice === 'already'" type="info" style="margin-bottom: 12px">这个数据库已经安装过,请使用原来的管理员账号登录。</n-alert>
|
||||
<n-alert v-if="errorText" type="error" style="margin-bottom: 12px">{{ errorText }}</n-alert>
|
||||
<div class="form-grid">
|
||||
|
||||
+15
-4
@@ -106,12 +106,23 @@ button, input, select { font: inherit; }
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
.login-secondary {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
.login-form {
|
||||
display: grid;
|
||||
grid-template-columns: 112px minmax(0, 1fr);
|
||||
column-gap: 12px;
|
||||
row-gap: 8px;
|
||||
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 {
|
||||
grid-column: 2;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
margin-top: 16px;
|
||||
justify-self: stretch;
|
||||
}
|
||||
.login-secondary + .gate-submit.n-button { margin-top: 12px; }
|
||||
.gate-brand {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
|
||||
Reference in New Issue
Block a user