From 3af627281b5fc859601a8a703afb457ac22373fe Mon Sep 17 00:00:00 2001 From: Alex Barnsley <8069294+alexbarnsley@users.noreply.github.com> Date: Tue, 16 May 2023 14:40:29 +0100 Subject: [PATCH 1/2] refactor/handle-customisation-of-modal --- resources/views/modal.blade.php | 40 ++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/resources/views/modal.blade.php b/resources/views/modal.blade.php index e698ad06e..2605f800a 100644 --- a/resources/views/modal.blade.php +++ b/resources/views/modal.blade.php @@ -9,12 +9,28 @@ 'buttons' => null, 'buttonsStyle' => 'modal-buttons', 'closeButtonOnly' => false, + 'closeButtonClass' => 'modal-close', 'wireClose' => false, 'escToClose' => true, 'fixedPosition' => false, - 'paddingClass' => 'p-8 sm:p-10' + 'paddingClass' => 'p-8 sm:p-10', + 'breakpoint' => 'md', + 'wrapperClass' => 'modal-content-wrapper', + 'contentClass' => 'modal-content', ]) +@php + $fixedPositionClass = [ + 'sm' => 'sm:mx-auto', + 'md' => 'md:mx-auto', + ][$breakpoint] ?? 'md:mx-auto'; + + $relativePositionClass = [ + 'sm' => 'sm:m-auto', + 'md' => 'md:m-auto', + ][$breakpoint] ?? 'md:m-auto'; +@endphp +