fix:improve modal performance and useability

This commit is contained in:
hackerESQ
2024-10-28 19:32:04 -05:00
parent d5f25c6f76
commit be859ad859
5 changed files with 87 additions and 79 deletions
@@ -7,6 +7,8 @@
'persistent' => false
])
<div>
@teleport('body')
<dialog
x-data="{ open: false }"
x-on:toggle-{{ $key }}.window="open = !open"
@@ -48,3 +50,5 @@
</div>
</template>
</dialog>
@endteleport
</div>
+1 -1
View File
@@ -14,7 +14,7 @@
<x-section-border class="my-3" />
@endif
<div class="flex justify-between gap-3">
<div class="flex justify-end gap-3">
{{ $actions}}
</div>
@endif
@@ -6,6 +6,8 @@
'persistent' => false
])
<div>
@teleport('body')
<dialog
{{ $attributes->except('wire:model')->class(["modal"]) }}
x-data="{open: @entangle($attributes->wire('model')).live }"
@@ -44,3 +46,5 @@
</a>
</div>
</dialog>
@endteleport
</div>
@@ -86,9 +86,9 @@ new class extends Component {
<x-button
wire:click="$toggle('confirmingPortfolioDeletion')"
wire:loading.attr="disabled"
icon="o-trash"
class="btn btn-ghost btn-circle text-error"
class="btn text-error"
title="{{ __('Delete Portfolio') }}"
label="{{ __('Delete Portfolio') }}"
/>
@endif
@@ -160,9 +160,9 @@ new class extends Component {
<x-button
wire:click="$toggle('confirmingTransactionDeletion')"
wire:loading.attr="disabled"
icon="o-trash"
class="btn btn-ghost btn-circle text-error"
class="btn text-error"
title="{{ __('Delete Transaction') }}"
label="{{ __('Delete Transaction') }}"
/>
@endif