Skip to content

Commit

Permalink
Merge pull request #27 from sadegh19b/rtl
Browse files Browse the repository at this point in the history
Fix styles for rtl
  • Loading branch information
CodeWithDennis authored Oct 14, 2024
2 parents 06b8406 + f3b6414 commit 8dc221c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/components/simple-alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
style="{{ $colors }}">
<div class="flex">
@if($icon)
<div class="flex-shrink-0 self-center mr-3">
<div class="flex-shrink-0 self-center ltr:mr-3 rtl:ml-3">
<x-filament::icon
:icon="$icon"
class="h-5 w-5 text-custom-400"
Expand All @@ -53,7 +53,7 @@ class="h-5 w-5 text-custom-400"
@if($link || $actions)
<div class="flex gap-x-3 items-center whitespace-nowrap">
@if($link)
<p class="text-sm md:ml-6 md:mt-0 self-center">
<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>
Expand All @@ -62,7 +62,7 @@ class="h-5 w-5 text-custom-400"
@endif

@if($actions)
<div class="md:ml-6 gap-3 flex items-center justify-start">
<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 }}
Expand All @@ -74,4 +74,4 @@ class="h-5 w-5 text-custom-400"
@endif
</div>
</div>
</div>
</div>

0 comments on commit 8dc221c

Please sign in to comment.