From a3237c2fedaf7090d739d4435cb9fb397ee8142f Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Tue, 12 Nov 2024 18:06:54 +0100 Subject: [PATCH 1/2] Add HasActionVerticalAlignment and HasIconVerticalAlignment --- src/Components/Infolists/SimpleAlert.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Components/Infolists/SimpleAlert.php b/src/Components/Infolists/SimpleAlert.php index b4340cb..674a478 100644 --- a/src/Components/Infolists/SimpleAlert.php +++ b/src/Components/Infolists/SimpleAlert.php @@ -3,10 +3,12 @@ namespace CodeWithDennis\SimpleAlert\Components\Infolists; use Closure; +use CodeWithDennis\SimpleAlert\Components\Concerns\HasActionVerticalAlignment; use CodeWithDennis\SimpleAlert\Components\Concerns\HasBorder; use CodeWithDennis\SimpleAlert\Components\Concerns\HasColor; use CodeWithDennis\SimpleAlert\Components\Concerns\HasDescription; use CodeWithDennis\SimpleAlert\Components\Concerns\HasIcon; +use CodeWithDennis\SimpleAlert\Components\Concerns\HasIconVerticalAlignment; use CodeWithDennis\SimpleAlert\Components\Concerns\HasLink; use CodeWithDennis\SimpleAlert\Components\Concerns\HasSimple; use CodeWithDennis\SimpleAlert\Components\Concerns\HasTitle; @@ -14,10 +16,12 @@ class SimpleAlert extends Entry { + use HasActionVerticalAlignment; use HasBorder; use HasColor; use HasDescription; use HasIcon; + use HasIconVerticalAlignment; use HasLink; use HasSimple; use HasTitle; From bea91babaf14b783fe96055eb37669f90d8fe24d Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Tue, 12 Nov 2024 18:09:41 +0100 Subject: [PATCH 2/2] Fix order --- resources/views/components/simple-alert-field.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/components/simple-alert-field.blade.php b/resources/views/components/simple-alert-field.blade.php index 1d40ea6..900292a 100644 --- a/resources/views/components/simple-alert-field.blade.php +++ b/resources/views/components/simple-alert-field.blade.php @@ -8,8 +8,8 @@ :link="$getLink()" :link-label="$getLinkLabel()" :link-blank="$getLinkBlank()" - :actions="$getActions()" :actions-vertical-alignment="$getActionsVerticalAlignment()" + :actions="$getActions()" :border="$getBorder()" /> \ No newline at end of file