Skip to content

Commit

Permalink
refactor: further toast component adjustments (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley committed May 1, 2024
1 parent 5a8b40d commit 4081475
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/assets/css/_toasts.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

.toast-body {
@apply p-4 text-left mr-4 sm:mt-0;
@apply p-4 text-left sm:mt-0;
}

.toast-icon {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/livewire/toast.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="flex fixed right-0 bottom-0 z-50 flex-col items-end p-5 space-y-3">
@foreach ($toasts as $key => $toast)
<div
class="z-20 cursor-pointer"
class="flex z-20 cursor-pointer"
x-data="{
dismiss() {
Livewire.emit('dismissToast', '{{ $key }}')
Expand Down
5 changes: 4 additions & 1 deletion resources/views/toast.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@
</span>
</span>

<div class="toast-body">
<div @class([
'toast-body',
'mr-4' => ! $hideSpinner,
])>
@if ($message)
{{ $message }}
@else
Expand Down

0 comments on commit 4081475

Please sign in to comment.