diff --git a/web/components/Modal.vue b/web/components/Modal.vue index 017293f0a..33aa0af7d 100644 --- a/web/components/Modal.vue +++ b/web/components/Modal.vue @@ -4,6 +4,7 @@ import { XMarkIcon } from '@heroicons/vue/24/outline'; import useFocusTrap from '~/composables/useFocusTrap'; export interface Props { + centerContent?: boolean; description?: string; error?: boolean; maxWidth?: string; @@ -11,15 +12,18 @@ export interface Props { showCloseX?: boolean; success?: boolean; t: any; + tallContent?: boolean; title?: string; } const props = withDefaults(defineProps(), { + centerContent: true, description: '', error: false, maxWidth: 'sm:max-w-lg', open: false, showCloseX: false, success: false, + tallContent: false, title: '', }); watchEffect(() => { @@ -54,23 +58,29 @@ const ariaLablledById = computed((): string|undefined => props.title ? `ModalTit tabindex="-1" @keyup.esc="closeModal" > - -
- -
+ +
+ props.title ? `ModalTit success ? 'shadow-green-600/30 border-green-600/10' : '', !error && !success ? 'shadow-orange/10 border-white/10' : '', ]" - class="text-16px text-beta bg-alpha text-left relative flex flex-col justify-around p-16px my-24px sm:p-24px border-2 border-solid shadow-xl transform overflow-hidden rounded-lg transition-all sm:w-full" + class="text-16px text-beta bg-alpha text-left relative z-10 flex flex-col justify-around mx-8px md:mx-16px border-2 border-solid shadow-xl transform overflow-hidden rounded-lg transition-all sm:w-full" > -
+
- -