Skip to content

Commit

Permalink
Merge pull request #34 from CodeWithDennis/fix-missing-div
Browse files Browse the repository at this point in the history
Fix missing div in blade file
  • Loading branch information
CodeWithDennis authored Dec 3, 2024
2 parents 16a34b6 + 5a2f897 commit 7f3a037
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions resources/views/components/simple-alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,28 @@ class="h-5 w-5 text-custom-400"
'flex gap-x-3 items-center',
$actionsVerticalAlignment === 'start' ? 'self-start' : 'self-center',
])>
<div class="flex gap-x-3 items-center whitespace-nowrap">
@if($link)
<p class="text-sm ltr:md:ml-6 rtl:md:mr-6 md:mt-0 self-center">
<a href="{{ $link }}" {{ $linkBlank ? 'target="_blank"' : '' }} class="whitespace-nowrap font-medium text-custom-400 hover:text-custom-500">
{{ $linkLabel }}
<span aria-hidden="true"> &rarr;</span>
</a>
</p>
@endif
<div class="flex gap-x-3 items-center whitespace-nowrap">
@if($link)
<p class="text-sm ltr:md:ml-6 rtl:md:mr-6 md:mt-0 self-center">
<a href="{{ $link }}" {{ $linkBlank ? 'target="_blank"' : '' }} class="whitespace-nowrap font-medium text-custom-400 hover:text-custom-500">
{{ $linkLabel }}
<span aria-hidden="true"> &rarr;</span>
</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)
@if ($action->isVisible())
{{ $action }}
@endif
@endforeach
</div>
@if($actions)
<div class="ltr:md:ml-6 rtl:md:mr-6 gap-3 flex items-center justify-start">
@foreach ($actions as $action)
@if ($action->isVisible())
{{ $action }}
@endif
@endforeach
</div>
@endif
</div>
@endif
</div>
@endif
</div>
</div>
</div>
</div>

0 comments on commit 7f3a037

Please sign in to comment.