mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
fix(ui): modal issues
- tooltips can not extend outside the modal causing a scrollbar to appear - modals are to wide - remove unused minWidth and maxWidth props
This commit is contained in:
@@ -7,8 +7,6 @@
|
|||||||
'action' => 'delete',
|
'action' => 'delete',
|
||||||
'content' => null,
|
'content' => null,
|
||||||
'closeOutside' => true,
|
'closeOutside' => true,
|
||||||
'minWidth' => '36rem',
|
|
||||||
'maxWidth' => '48rem',
|
|
||||||
'isFullWidth' => false,
|
'isFullWidth' => false,
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -16,7 +14,6 @@
|
|||||||
$modalId = 'modal-' . uniqid();
|
$modalId = 'modal-' . uniqid();
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
|
||||||
<div x-data="{ modalOpen: false }"
|
<div x-data="{ modalOpen: false }"
|
||||||
x-init="$watch('modalOpen', value => { if (!value) { $wire.dispatch('modalClosed') } })"
|
x-init="$watch('modalOpen', value => { if (!value) { $wire.dispatch('modalClosed') } })"
|
||||||
:class="{ 'z-40': modalOpen }" @keydown.window.escape="modalOpen=false"
|
:class="{ 'z-40': modalOpen }" @keydown.window.escape="modalOpen=false"
|
||||||
@@ -52,7 +49,7 @@
|
|||||||
x-transition:leave="ease-in duration-100"
|
x-transition:leave="ease-in duration-100"
|
||||||
x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
|
x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
|
||||||
x-transition:leave-end="opacity-0 -translate-y-2 sm:scale-95"
|
x-transition:leave-end="opacity-0 -translate-y-2 sm:scale-95"
|
||||||
class="relative w-full min-w-full lg:min-w-[{{ $minWidth }}] max-w-[{{ $maxWidth }}] max-h-[calc(100vh-2rem)] border rounded-sm drop-shadow-sm bg-white border-neutral-200 dark:bg-base dark:border-coolgray-300 flex flex-col">
|
class="relative w-full lg:w-auto lg:min-w-2xl lg:max-w-4xl border rounded-sm drop-shadow-sm bg-white border-neutral-200 dark:bg-base dark:border-coolgray-300 flex flex-col">
|
||||||
<div class="flex items-center justify-between py-6 px-6 shrink-0">
|
<div class="flex items-center justify-between py-6 px-6 shrink-0">
|
||||||
<h3 class="text-2xl font-bold">{{ $title }}</h3>
|
<h3 class="text-2xl font-bold">{{ $title }}</h3>
|
||||||
<button @click="modalOpen=false"
|
<button @click="modalOpen=false"
|
||||||
@@ -63,7 +60,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative flex items-center justify-center w-auto overflow-y-auto px-6 pb-6" style="-webkit-overflow-scrolling: touch;">
|
<div class="relative flex items-center justify-center w-auto px-6 pb-6">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -71,8 +71,7 @@
|
|||||||
@if ($application->fqdn)
|
@if ($application->fqdn)
|
||||||
<span class="flex gap-1 text-xs">{{ Str::limit($application->fqdn, 60) }}
|
<span class="flex gap-1 text-xs">{{ Str::limit($application->fqdn, 60) }}
|
||||||
@can('update', $service)
|
@can('update', $service)
|
||||||
<x-modal-input title="Edit Domains" :closeOutside="false" minWidth="32rem"
|
<x-modal-input title="Edit Domains" :closeOutside="false">
|
||||||
maxWidth="40rem">
|
|
||||||
<x-slot:content>
|
<x-slot:content>
|
||||||
<span class="cursor-pointer">
|
<span class="cursor-pointer">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|||||||
Reference in New Issue
Block a user