Skip to content

Commit

Permalink
Add support for modal with XL size and fix $type position (#2842)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuweiweiouo authored Jun 14, 2024
1 parent b1125e1 commit 0b146b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/layouts/modal.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@push('modals-container')
<div class="modal fade center-scale"
<div class="modal fade center-scale {{$type}}"
id="screen-modal-{{$key}}"
role="dialog"
aria-labelledby="screen-modal-{{$key}}"
Expand All @@ -10,7 +10,7 @@
data-modal-open="{{$open}}"
{{$staticBackdrop ? "data-bs-backdrop=static" : ''}}
>
<div class="modal-dialog modal-fullscreen-md-down {{$size}} {{$type}}"
<div class="modal-dialog modal-fullscreen-md-down {{$size}}"
role="document"
id="screen-modal-type-{{$key}}"
>
Expand Down
1 change: 1 addition & 0 deletions src/Screen/Layouts/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Modal extends Layout
{
use Commander;

public const SIZE_XL = 'modal-xl';
public const SIZE_LG = 'modal-lg';
public const SIZE_SM = 'modal-sm';

Expand Down

0 comments on commit 0b146b6

Please sign in to comment.