Skip to content

Commit ce6d14f

Browse files
committed
fix: fix login error message positioning
1 parent f865470 commit ce6d14f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adminforth/spa/src/views/LoginView.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
overflow-x-hidden z-50 min-w-[350px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
2828
<div class="relative p-4 w-full max-h-full max-w-[400px]">
2929
<!-- Modal content -->
30-
<div class="af-login-modal-content relative bg-lightLoginViewBackground rounded-lg shadow dark:bg-darkLoginViewBackground dark:shadow-black" >
30+
<div class="af-login-modal-content relative bg-lightLoginViewBackground rounded-lg shadow dark:bg-darkLoginViewBackground dark:shadow-black" :class=" { 'rounded-b-none overflow-hidden': error } ">
3131
<!-- Modal header -->
3232
<div class="af-login-modal-header flex items-center justify-between flex-col p-4 md:p-5 border-b rounded-t dark:border-gray-600">
3333

@@ -107,9 +107,8 @@
107107
</Button>
108108
</form>
109109
</div>
110-
<ErrorMessage v-if="error" :error="error" class="rounded-t-none mb-0 w-full" />
111110
</div>
112-
<div v-if="!error" class="h-[52px]"/>
111+
<ErrorMessage v-if="error" :error="error" class="absolute left-4 right-4 rounded-t-none mb-0 shadow px-8" />
113112
</div>
114113
</div>
115114

0 commit comments

Comments
 (0)