Skip to content

Commit

Permalink
Fix: Small UI fixes for auth screens (#3775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikehrn authored Jan 7, 2025
1 parent 17c6f71 commit da10e35
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
8 changes: 5 additions & 3 deletions packages/frontend-2/components/auth/PasswordResetPanel.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<form class="mx-auto w-full px-2" @submit="onSubmit">
<h1 class="text-heading-xl text-center inline-block mb-4">Reset your password</h1>
<h1 class="text-heading-xl text-center inline-block mb-4 w-full">
Reset your password
</h1>
<div class="flex flex-col space-y-4 text-body-xs">
<div>
Type in the email address you used, so we can verify your account. We will send
Expand All @@ -20,10 +22,10 @@

<div class="flex flex-col gap-y-2 mt-4">
<FormButton submit full-width size="lg" :disabled="loading">
Send password reset email
Send reset email
</FormButton>
<FormButton color="outline" size="lg" full-width :to="homeRoute">
Go home
Back to login
</FormButton>
</div>
</form>
Expand Down
15 changes: 7 additions & 8 deletions packages/frontend-2/components/auth/RegisterPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
</div>
<AuthWorkspaceInviteHeader v-else :invite="workspaceInvite" />
<template v-if="isInviteOnly && !inviteToken">
<div class="flex space-x-2 items-center">
<ExclamationTriangleIcon class="h-8 w-8 text-warning" />
<div>
This server is invite only. If you have received an invitation email, please
follow the instructions in it.
</div>
</div>
<CommonAlert color="warning">
<template #title>This server is invite only</template>
<template #description>
If you have received an invitation email, please follow the instructions in
it.
</template>
</CommonAlert>
<div
v-if="!inviteEmail"
class="flex gap-1 text-foregound-3 text-body-xs items-center justify-center"
Expand Down Expand Up @@ -56,7 +56,6 @@ import { useQuery } from '@vue/apollo-composable'
import { AuthStrategy } from '~~/lib/auth/helpers/strategies'
import { useLoginOrRegisterUtils } from '~~/lib/auth/composables/auth'
import { graphql } from '~~/lib/common/generated/gql'
import { ExclamationTriangleIcon } from '@heroicons/vue/24/outline'
import { loginRoute } from '~~/lib/common/helpers/route'
import { authRegisterPanelQuery } from '~/lib/auth/graphql/queries'
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend-2/pages/authn/forgotten-password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<AuthPasswordResetPanel />
</template>
<script setup lang="ts">
useHead({ title: 'Forgotten password' })
useHead({ title: 'Reset your password' })
</script>

0 comments on commit da10e35

Please sign in to comment.