Force login modal to display as overlay with inline styles

This commit is contained in:
Ryderjj89
2025-10-01 17:38:50 -04:00
parent 7b834f4903
commit cb51c048c9

View File

@@ -1,6 +1,22 @@
<template>
<Teleport to="body">
<UModal v-model="isOpen" :ui="{ width: 'sm:max-w-md' }">
<UModal
v-model="isOpen"
:ui="{ width: 'sm:max-w-md' }"
class="login-modal"
:style="{
position: 'fixed',
top: '0',
left: '0',
right: '0',
bottom: '0',
zIndex: 9999,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'rgba(0, 0, 0, 0.5)',
backdropFilter: 'blur(4px)'
}"
>
<UCard>
<template #header>
<h3 class="text-lg font-semibold text-gray-900">Admin Login</h3>
@@ -52,7 +68,6 @@
</form>
</UCard>
</UModal>
</Teleport>
</template>
<script setup lang="ts">