An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Update input component and toast position
Andras Bacsai2f50f64ecfb9
diff --git a/app/View/Components/Forms/Input.php b/app/View/Components/Forms/Input.phpindex 56349f6dbd..45f8e9678c 100644--- a/app/View/Components/Forms/Input.php+++ b/app/View/Components/Forms/Input.php@@ -29,7 +29,9 @@ class Input extends Component{if (is_null($this->id)) $this->id = new Cuid2(7);if (is_null($this->name)) $this->name = $this->id;-+ if ($this->type === 'password') {+ $this->defaultClass = $this->defaultClass . " pr-[2.8rem]";+ }// $this->label = Str::title($this->label);return view('components.forms.input');}diff --git a/resources/css/app.css b/resources/css/app.cssindex 3c2a79dffa..22869da461 100644--- a/resources/css/app.css+++ b/resources/css/app.css@@ -84,7 +84,7 @@ input {}.input {- @apply block w-full py-1.5 pr-[2.8rem] rounded border-0 text-sm ring-inset ring-1 dark:bg-coolgray-100 dark:text-white text-black focus:ring-2 dark:focus:ring-coolgray-300 dark:ring-coolgray-300 dark:read-only:text-neutral-500 dark:read-only:ring-0 dark:read-only:bg-coolgray-100/40 dark:placeholder:text-neutral-700;+ @apply block w-full py-1.5 rounded border-0 text-sm ring-inset ring-1 dark:bg-coolgray-100 dark:text-white text-black focus:ring-2 dark:focus:ring-coolgray-300 dark:ring-coolgray-300 dark:read-only:text-neutral-500 dark:read-only:ring-0 dark:read-only:bg-coolgray-100/40 dark:placeholder:text-neutral-700;}option {diff --git a/resources/views/components/toast.blade.php b/resources/views/components/toast.blade.phpindex 6e6f08c4b3..df0d224e0a 100644--- a/resources/views/components/toast.blade.php+++ b/resources/views/components/toast.blade.php@@ -13,7 +13,7 @@}" x-init="window.toast = function(message, options = {}) {let description = '';let type = 'default';- let position = 'bottom-right';+ let position = 'top-center';let html = '';if (typeof options.description != 'undefined') description = options.description;if (typeof options.type != 'undefined') type = options.type;diff --git a/resources/views/livewire/server/resources.blade.php b/resources/views/livewire/server/resources.blade.phpindex 2d7376c872..080ea06d63 100644--- a/resources/views/livewire/server/resources.blade.php+++ b/resources/views/livewire/server/resources.blade.php@@ -2,7 +2,7 @@<x-server.navbar :server="$server" :parameters="$parameters" />@if ($server->isFunctional())<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'managed' }" class="flex h-full">- <div class="flex flex-col gap-4 xl:w-32">+ <div class="flex flex-col gap-4"><a :class="activeTab === 'managed' && 'text-white'"@click.prevent="activeTab = 'managed'; window.location.hash = 'managed'" href="#">Managed</a><a :class="activeTab === 'unmanaged' && 'text-white'"