Skip to content

Commit 69553ec

Browse files
committed
refactor: Improve popup component styling and button behavior
1 parent 7bb1bf0 commit 69553ec

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

resources/views/components/popup.blade.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
x-transition:enter-start="translate-y-full" x-transition:enter-end="translate-y-0"
77
x-transition:leave="transition ease-in duration-300" x-transition:leave-start="translate-y-0"
88
x-transition:leave-end="translate-y-full" x-init="setTimeout(() => { bannerVisible = true }, bannerVisibleAfter);"
9-
class="fixed bottom-0 right-0 w-full h-auto duration-300 ease-out sm:px-5 sm:pb-5 sm:w-[26rem] lg:w-full z-[999]"
9+
class="fixed bottom-0 right-0 w-full h-auto duration-300 ease-out sm:px-5 sm:pb-5 w-full z-[999]"
1010
x-cloak>
1111
<div
12-
class="flex flex-col items-center justify-between w-full h-full max-w-4xl p-6 mx-auto bg-white border shadow-lg lg:border-t dark:border-coolgray-300 dark:bg-coolgray-100 lg:p-8 lg:flex-row sm:rounded">
12+
class="flex items-center flex-col justify-between w-full h-full max-w-4xl p-6 mx-auto bg-white border shadow-lg lg:border-t dark:border-coolgray-300 dark:bg-coolgray-100 lg:p-8 lg:flex-row sm:rounded">
1313
<div
1414
class="flex flex-col items-start h-full pb-6 text-xs lg:items-center lg:flex-row lg:pb-0 lg:pr-6 lg:space-x-5 dark:text-neutral-300">
1515
@if (isset($icon))
@@ -23,14 +23,12 @@ class="flex flex-col items-start h-full pb-6 text-xs lg:items-center lg:flex-row
2323
<p class="">{{ $description }}</span></p>
2424
</div>
2525
</div>
26-
<div class="flex items-end justify-end w-full pl-3 space-x-3 lg:flex-shrink-0 lg:w-auto">
2726
<button
2827
@if ($buttonText->attributes->whereStartsWith('@click')->first()) @click="bannerVisible=false;{{ $buttonText->attributes->get('@click') }}"
29-
@else
28+
@else
3029
@click="bannerVisible=false;" @endif
31-
class="inline-flex items-center justify-center flex-shrink-0 w-1/2 px-4 py-2 text-sm font-medium tracking-wide transition-colors duration-200 rounded-md bg-neutral-100 hover:bg-neutral-200 dark:bg-coolgray-200 lg:w-auto dark:text-neutral-200 dark:hover:bg-coolgray-300 focus:shadow-outline focus:outline-none">
30+
class="w-full px-4 py-2 text-sm font-medium tracking-wide transition-colors duration-200 rounded-md bg-neutral-100 hover:bg-neutral-200 dark:bg-coolgray-200 lg:w-auto dark:text-neutral-200 dark:hover:bg-coolgray-300 focus:shadow-outline focus:outline-none">
3231
{{ $buttonText }}
3332
</button>
34-
</div>
3533
</div>
3634
</div>

resources/views/livewire/layout-popups.blade.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,16 @@
3232
@if (!isCloud())
3333
<x-popup>
3434
<x-slot:title>
35-
<span class="font-bold text-left text-red-500">WARNING: </span>Realtime Error?!
35+
<span class="font-bold text-left text-red-500">WARNING: </span> Cannot connect to real-time service
3636
</x-slot:title>
3737
<x-slot:description>
38-
<span>Coolify could not connect to its real-time service.<br>This will cause unusual problems on the
39-
UI
40-
if
41-
not fixed! <br><br>
38+
<div>This will cause unusual problems on the
39+
UI! <br><br>
4240
Please ensure that you have opened the
4341
<a class="underline" href='https://coolify.io/docs/knowledge-base/server/firewall'
44-
target='_blank'>required ports</a>,
45-
check the
46-
related <a class="underline" href='https://coolify.io/docs/knowledge-base/cloudflare/tunnels'
47-
target='_blank'>documentation</a> or get
42+
target='_blank'>required ports</a> or get
4843
help on <a class="underline" href='https://coollabs.io/discord' target='_blank'>Discord</a>.
49-
</span>
44+
</div>
5045
</x-slot:description>
5146
<x-slot:button-text @click="disableRealtime()">
5247
Acknowledge & Disable This Popup

0 commit comments

Comments
 (0)