Skip to content

Commit

Permalink
fix: alert size on login screen mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
lukicenturi committed Aug 22, 2023
1 parent 93168ec commit b94e9c3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/account/activation/AccountActivate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { t } = useI18n();
<div
class="container py-16 lg:pt-[200px] lg:pb-32 flex flex-col items-center justify-center"
>
<div class="w-[380px]">
<div class="w-[380px] max-w-full">
<div v-if="validating" class="flex justify-center">
<RuiProgress variant="indeterminate" circular color="primary" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/account/activation/PendingActivation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { t } = useI18n();
<div
class="container h-full flex flex-col pt-10 md:pt-0 md:flex-1 md:items-center md:justify-center"
>
<div class="max-w-[30.6rem] space-y-3">
<div class="max-w-[30.6rem] max-w-full space-y-3">
<div class="text-h4">{{ t('auth.pending_activation.title') }}</div>
<div class="text-body-1 text-rui-text-secondary">
{{ t('auth.pending_activation.message') }}
Expand Down
8 changes: 6 additions & 2 deletions components/account/login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const { t } = useI18n();
</script>

<template>
<div class="w-[360px] space-y-8">
<div class="w-[360px] max-w-full space-y-8">
<div class="space-y-3">
<div class="text-h4">{{ t('auth.login.title') }}</div>
<div class="text-body-1 text-rui-text-secondary">
Expand Down Expand Up @@ -128,7 +128,11 @@ const { t } = useI18n();
</ButtonLink>
</div>
</div>
<div v-if="hadError" :class="modal ? 'w-[360px] mt-8' : 'w-[660px] mt-14'">
<div
v-if="hadError"
class="max-w-full"
:class="modal ? 'w-[360px] mt-8' : 'w-[660px] mt-14'"
>
<RuiAlert type="error" :description="t('auth.login.alert_error')" />
</div>
</template>
2 changes: 1 addition & 1 deletion components/account/password/PasswordChanged.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { t } = useI18n();
<div
class="container py-16 lg:pt-[250px] lg:pb-32 flex flex-col items-center justify-center"
>
<div class="w-[360px] space-y-8">
<div class="w-[360px] max-w-full space-y-8">
<div class="space-y-3">
<div class="text-h4">{{ t('auth.password_changed.title') }}</div>
<div class="text-body-1 text-rui-text-secondary">
Expand Down
2 changes: 1 addition & 1 deletion components/account/password/PasswordForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const { t } = useI18n();
<div
class="container py-16 lg:pt-[200px] lg:pb-32 flex flex-col items-center justify-center"
>
<div class="w-[360px] space-y-8">
<div class="w-[360px] max-w-full space-y-8">
<div class="text-h4">{{ t('auth.recover_password.title') }}</div>

<form class="space-y-6" @submit.prevent="">
Expand Down
2 changes: 1 addition & 1 deletion components/account/password/PasswordLinkSend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { t } = useI18n();
<div
class="container py-16 lg:pt-[250px] lg:pb-32 flex flex-col items-center justify-center"
>
<div class="w-[360px] space-y-3">
<div class="w-[360px] max-w-full space-y-3">
<div class="text-h4">{{ t('auth.password_link_send.title') }}</div>
<div class="text-body-1 text-rui-text-secondary">
{{ t('auth.password_link_send.message') }}
Expand Down
2 changes: 1 addition & 1 deletion components/account/password/PasswordReset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const { t } = useI18n();
<div
class="container py-16 lg:pt-[200px] lg:pb-32 flex flex-col items-center justify-center"
>
<div class="w-[360px]">
<div class="w-[360px] max-w-full">
<div v-if="validating" class="flex justify-center">
<RuiProgress variant="indeterminate" circular color="primary" />
</div>
Expand Down
5 changes: 4 additions & 1 deletion components/account/signup/SignupForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ const setErrors = (errors: ValidationErrors) => {
class="container flex flex-col lg:flex-row pt-4 pb-8 lg:py-14 h-full grow"
>
<div class="flex justify-center grow">
<form class="w-[440px] flex flex-col justify-between" @submit.prevent="">
<form
class="w-[440px] max-w-full flex flex-col justify-between"
@submit.prevent=""
>
<SignupIntroduction v-if="step === 1" @next="next()" />
<SignupAccount
v-if="step === 2"
Expand Down

0 comments on commit b94e9c3

Please sign in to comment.