Skip to content

Commit 1d65c21

Browse files
authored
Merge pull request #388 from devforth/AdminForth/915
feat: move login error message to the bottom of authentication modal
2 parents b54dd48 + 0a9c3f5 commit 1d65c21

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

adminforth/spa/src/views/LoginView.vue

Lines changed: 2 additions & 4 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

@@ -92,8 +92,6 @@
9292
:meta="c.meta"
9393
@update:disableLoginButton="setDisableLoginButton($event)"
9494
/>
95-
96-
<ErrorMessage :error="error" />
9795

9896
<div v-if="loginPromptHTML"
9997
class="flex items-center p-4 mb-4 text-sm text-lightLoginViewPromptText rounded-lg bg-lightLoginViewPromptBackground dark:bg-darkLoginViewPromptBackground dark:text-darkLoginViewPromptText" role="alert"
@@ -108,9 +106,9 @@
108106
{{ $t('Login to your account') }}
109107
</Button>
110108
</form>
111-
112109
</div>
113110
</div>
111+
<ErrorMessage v-if="error" :error="error" class="absolute left-4 right-4 rounded-t-none mb-0 shadow px-9" />
114112
</div>
115113
</div>
116114

0 commit comments

Comments
 (0)