Skip to content

Commit

Permalink
Refactor simple-alert.blade.php for improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Dec 3, 2024
1 parent 5a2f897 commit 7141c20
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions resources/views/components/simple-alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
@endphp

<div
x-data="{}"
@class([
'filament-simple-alert rounded-md bg-custom-50 p-4 dark:bg-gray-900 ',
'ring-1 ring-custom-100 dark:ring-white/10' => $border,
])
style="{{ $colors }}">
<div x-data="{}"
@class([
'filament-simple-alert rounded-md bg-custom-50 p-4 dark:bg-gray-900 ',
'ring-1 ring-custom-100 dark:ring-white/10' => $border,
])
style="{{ $colors }}">
<div class="flex">
@if($icon)
<div @class([
Expand Down Expand Up @@ -69,7 +68,6 @@ class="h-5 w-5 text-custom-400"
</a>
</p>
@endif

@if($actions)
<div class="ltr:md:ml-6 rtl:md:mr-6 gap-3 flex items-center justify-start">
@foreach ($actions as $action)
Expand All @@ -80,8 +78,8 @@ class="h-5 w-5 text-custom-400"
</div>
@endif
</div>
@endif
</div>
@endif
</div>
</div>
</div>

0 comments on commit 7141c20

Please sign in to comment.