Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wide #79

Merged
merged 2 commits into from
Jan 27, 2023
Merged

wide #79

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/components/async-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'id',
'route',
])
<x-moonshine::modal>
<x-moonshine::modal :wide="true">
<div x-data="{}" id="{{ $id }}">
<div class="moonshine-loader" style="height: 50px; width: 50px;"></div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion resources/views/components/modal.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@props(['wide'=>false])
<span x-data="{isOpen: false}" x-cloak x-init="$refs.cover.classList.remove('hidden')">
<div x-ref="cover" :class="isOpen == false ? 'hidden' : ''" class="fixed z-30 inset-0 overflow-y-auto hidden">
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
Expand All @@ -11,7 +12,7 @@

<div class="inline-block align-bottom rounded-lg
text-left overflow-hidden shadow-xl transform transition-all
sm:my-8 sm:align-middle sm:w-full sm:max-w-xl md:max-w-2xl lg:max-w-4xl lg:max-w-4xl xl:max-w-6xl 2xl:max-w-7xl"
sm:my-8 sm:align-middle sm:w-full sm:max-w-xl {{ $wide ? 'md:max-w-2xl lg:max-w-4xl lg:max-w-4xl xl:max-w-6xl 2xl:max-w-7xl' : '' }}"
role="dialog" aria-modal="true" aria-labelledby="modal-headline"
x-show="isOpen" @click.outside="isOpen = false" x-transition:enter="ease-out transition-slow"
x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
Expand Down