Skip to content

Commit

Permalink
Custom modal size (#359)
Browse files Browse the repository at this point in the history
* Added custom modal size

* Renamed $boxClass to $class

* Renamed back to $boxClass because class is already used in the dialog section
  • Loading branch information
RealZone22 authored Apr 13, 2024
1 parent 601842d commit a5aa03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/View/Components/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public function __construct(
public ?string $id = '',
public ?string $title = null,
public ?string $subtitle = null,
public ?string $boxClass = null,
public ?bool $separator = false,
public ?bool $persistent = false,

Expand All @@ -38,7 +39,7 @@ public function render(): View|Closure|string
@endif
@endif
>
<div class="modal-box">
<div class="modal-box {{ $boxClass }}">
@if($title)
<x-mary-header :title="$title" :subtitle="$subtitle" size="text-2xl" :separator="$separator" class="mb-5" />
@endif
Expand Down

0 comments on commit a5aa03f

Please sign in to comment.