From e274005cd1daa17bf8aeee966cf09d00891c9073 Mon Sep 17 00:00:00 2001 From: Lucas Brito Date: Sun, 10 Dec 2023 06:58:39 -0300 Subject: [PATCH 1/3] Update Modal.php --- src/Modal.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Modal.php b/src/Modal.php index 1c6d25b..906f508 100644 --- a/src/Modal.php +++ b/src/Modal.php @@ -53,6 +53,7 @@ public function openModal($component, $arguments = [], $modalAttributes = []): v 'destroyOnClose' => $componentClass::destroyOnClose(), 'maxWidth' => $componentClass::modalMaxWidth(), 'maxWidthClass' => $componentClass::modalMaxWidthClass(), + 'align' => $componentClass::align(), ], $modalAttributes), ]; From 93792ddbf4cd2441a4eb36410417c58ebf89ca5f Mon Sep 17 00:00:00 2001 From: Lucas Brito Date: Sun, 10 Dec 2023 06:59:50 -0300 Subject: [PATCH 2/3] Update ModalComponent.php --- src/ModalComponent.php | 3 +++ 1 file changed, 3 insertions(+) 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; From 2007ac605809d4cb0c3e7caf4ab46c51554aa155 Mon Sep 17 00:00:00 2001 From: Lucas Brito Date: Sun, 10 Dec 2023 07:00:15 -0300 Subject: [PATCH 3/3] Update modal.blade.php --- resources/views/modal.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;" > -
+