refactor: max width form dialog

This commit is contained in:
puriphatt 2024-04-22 14:24:28 +07:00
parent a15e4c198a
commit e192d5b5d0

View file

@ -12,6 +12,7 @@ defineProps<{
badgeLabel?: string;
badgeClass?: string;
noFooter?: boolean;
maxWidth?: number;
submit?: (...args: unknown[]) => void;
close?: (...args: unknown[]) => void;
}>();
@ -27,12 +28,8 @@ const zipCode = defineModel<string>('zipCode', { default: '' });
<template>
<q-dialog v-model="modal" @hide="close">
<AppBox
style="
padding: 0;
border-radius: var(--radius-2);
max-width: 85%;
max-height: 100%;
"
style="padding: 0; border-radius: var(--radius-2); max-height: 100%"
:style="`max-width:${maxWidth ? maxWidth : '85'}%`"
>
<q-form greedy @submit.prevent @validation-success="submit">
<!-- header -->