Skip to content

Commit

Permalink
chore(client): Fix #7923
Browse files Browse the repository at this point in the history
Close #7924
  • Loading branch information
syuilo committed Oct 31, 2021
1 parent 15cd563 commit 7a66c9b
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/client/components/forgot-password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
>
<template #header>{{ $ts.forgotPassword }}</template>

<form class="_monolithic_" @submit.prevent="onSubmit" v-if="$instance.enableEmail">
<div class="_section">
<MkInput v-model="username" type="text" pattern="^[a-zA-Z0-9_]+$" spellcheck="false" autofocus required>
<form class="bafeceda" @submit.prevent="onSubmit" v-if="$instance.enableEmail">
<div class="main _formRoot">
<MkInput class="_formBlock" v-model="username" type="text" pattern="^[a-zA-Z0-9_]+$" spellcheck="false" autofocus required>
<template #label>{{ $ts.username }}</template>
<template #prefix>@</template>
</MkInput>

<MkInput v-model="email" type="email" spellcheck="false" required>
<MkInput class="_formBlock" v-model="email" type="email" spellcheck="false" required>
<template #label>{{ $ts.emailAddress }}</template>
<template #caption>{{ $ts._forgotPassword.enterEmail }}</template>
</MkInput>

<MkButton type="submit" :disabled="processing" primary style="margin: 0 auto;">{{ $ts.send }}</MkButton>
<MkButton class="_formBlock" type="submit" :disabled="processing" primary style="margin: 0 auto;">{{ $ts.send }}</MkButton>
</div>
<div class="_section">
<div class="sub">
<MkA to="/about" class="_link">{{ $ts._forgotPassword.ifNoEmail }}</MkA>
</div>
</form>
Expand Down Expand Up @@ -69,3 +69,16 @@ export default defineComponent({
}
});
</script>

<style lang="scss" scoped>
.bafeceda {
> .main {
padding: 24px;
}
> .sub {
border-top: solid 0.5px var(--divider);
padding: 24px;
}
}
</style>

0 comments on commit 7a66c9b

Please sign in to comment.