diff --git a/resources/views/modal.blade.php b/resources/views/modal.blade.php index f3c98b0..1a4d166 100644 --- a/resources/views/modal.blade.php +++ b/resources/views/modal.blade.php @@ -14,7 +14,7 @@ class="fixed inset-0 z-10 overflow-y-auto" style="display: none;" > -
+
$componentClass::destroyOnClose(), 'maxWidth' => $componentClass::modalMaxWidth(), 'maxWidthClass' => $componentClass::modalMaxWidthClass(), + 'align' => $componentClass::align(), ], $modalAttributes), ]; diff --git a/src/ModalComponent.php b/src/ModalComponent.php index f169595..4054651 100644 --- a/src/ModalComponent.php +++ b/src/ModalComponent.php @@ -27,6 +27,9 @@ abstract class ModalComponent extends Component implements Contract '7xl' => 'sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl', ]; + protected static string $align = "items-end"; + + public function destroySkippedModals(): self { $this->destroySkipped = true;