mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-20 02:17:09 +00:00
fix: replace inline styles with Tailwind classes in modal-input (#7267)
This commit is contained in:
1 file changed
+1
-12
@@ -16,17 +16,6 @@
|
|||||||
$modalId = 'modal-' . uniqid();
|
$modalId = 'modal-' . uniqid();
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<style>
|
|
||||||
#{{ $modalId }} {
|
|
||||||
max-height: calc(100vh - 2rem);
|
|
||||||
}
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
#{{ $modalId }} {
|
|
||||||
min-width: {{ $minWidth }};
|
|
||||||
max-width: {{ $maxWidth }};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<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') } })"
|
||||||
@@ -63,7 +52,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 border rounded-sm drop-shadow-sm min-w-full bg-white border-neutral-200 dark:bg-base dark:border-coolgray-300 flex flex-col">
|
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">
|
||||||
<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"
|
||||||
|
|||||||
Reference in new issue
Block a user