Skip to content

A self-hosted media server and file management system

fix: modals too wide on large screen

aminnausin988a6cd13750
diff --git a/resources/js/components/cedar-ui/modal/GlobalModal.vue b/resources/js/components/cedar-ui/modal/GlobalModal.vue
index c1251b36..dfd36955 100644
--- a/resources/js/components/cedar-ui/modal/GlobalModal.vue
+++ b/resources/js/components/cedar-ui/modal/GlobalModal.vue
@@ -33,16 +33,13 @@ const modalStore = useModalCore();
leave-from-class="opacity-100 sm:scale-100"
leave-to-class="opacity-0 sm:scale-95"
>
- <UseFocusTrap
- v-if="modalStore.isOpen.value"
- class="scrollbar-hide relative flex h-full max-h-screen w-full items-center overflow-y-scroll px-6 py-10 sm:py-6"
- >
+ <UseFocusTrap v-if="modalStore.isOpen.value" class="scrollbar-hide relative flex h-full max-h-screen w-full items-center overflow-y-scroll px-6 py-10 sm:py-6">
<OnClickOutside
@trigger="modalStore.close"
@keydown.esc="modalStore.close"
:class="
cn(
- '3xl:max-w-2xl m-auto flex w-full flex-col gap-4 rounded-md border border-neutral-200 bg-white p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg sm:rounded-lg xl:max-w-xl dark:border-neutral-700 dark:bg-neutral-800/90',
+ '3xl:max-w-xl m-auto flex w-full flex-col gap-4 rounded-md border border-neutral-200 bg-white p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg sm:rounded-lg xl:max-w-xl dark:border-neutral-700 dark:bg-neutral-800/90',
modalStore.props.rootClass,
)
"
diff --git a/resources/js/components/cedar-ui/modal/ModalBase.vue b/resources/js/components/cedar-ui/modal/ModalBase.vue
index b733788c..a029decb 100644
--- a/resources/js/components/cedar-ui/modal/ModalBase.vue
+++ b/resources/js/components/cedar-ui/modal/ModalBase.vue
@@ -76,7 +76,7 @@ watch(
<OnClickOutside
@trigger="closeModal"
@keydown.esc="closeModal"
- class="3xl:max-w-2xl m-auto flex w-full flex-col gap-4 rounded-md border border-neutral-200 bg-white p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg sm:rounded-lg xl:max-w-xl dark:border-neutral-700 dark:bg-neutral-800/90"
+ class="3xl:max-w-xl m-auto flex w-full flex-col gap-4 rounded-md border border-neutral-200 bg-white p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg sm:rounded-lg xl:max-w-xl dark:border-neutral-700 dark:bg-neutral-800/90"
tabindex="-1"
>
<section class="flex flex-wrap items-center gap-2">
diff --git a/resources/js/components/modals/GlobalModal.vue b/resources/js/components/modals/GlobalModal.vue
index 4584a600..f1dbff46 100644
--- a/resources/js/components/modals/GlobalModal.vue
+++ b/resources/js/components/modals/GlobalModal.vue
@@ -37,7 +37,7 @@ const modalStore = useModalStore();
<OnClickOutside
@trigger="modalStore.close"
@keydown.esc="modalStore.close"
- class="3xl:max-w-2xl m-auto flex w-full flex-col gap-4 rounded-md border border-neutral-200 bg-white p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg sm:rounded-lg xl:max-w-xl dark:border-neutral-700 dark:bg-neutral-800/90"
+ class="3xl:max-w-xl m-auto flex w-full flex-col gap-4 rounded-md border border-neutral-200 bg-white p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg sm:rounded-lg xl:max-w-xl dark:border-neutral-700 dark:bg-neutral-800/90"
tabindex="-1"
>
<component :is="modalStore.component" v-bind="modalStore.props" />