Skip to content

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.

more css

Andras Bacsaid5c1e1d3f4bd
diff --git a/resources/css/app.css b/resources/css/app.css
index f54e529694..93d5c48965 100644
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -12,5 +12,5 @@ input, select, textarea {
@apply border-none p-2 bg-neutral-800 text-white disabled:text-neutral-600;
}
button {
- @apply border-none px-2 rounded cursor-pointer;
+ @apply border-none px-2 p-1 cursor-pointer;
}
diff --git a/resources/views/components/inputs/button.blade.php b/resources/views/components/inputs/button.blade.php
index 9adb00a8df..9ab8d023e5 100644
--- a/resources/views/components/inputs/button.blade.php
+++ b/resources/views/components/inputs/button.blade.php
@@ -1,10 +1,11 @@
@props([
+ 'class' => null,
'defaultClass' => 'text-white bg-violet-500 hover:bg-violet-600',
'confirm' => null,
'confirmAction' => null,
])
-<button {{ $attributes }} {{ $attributes->merge(['class' => $defaultClass]) }}
+<button {{ $attributes }} {{ $attributes->merge(['class' => "$defaultClass $class"]) }}
@if ($attributes->whereStartsWith('wire:click')) wire:target="{{ $attributes->whereStartsWith('wire:click')->first() }}"
wire:loading.class="text-black bg-green-500" wire:loading.attr="disabled" wire:loading.class.remove="{{ $defaultClass }} {{ $attributes->whereStartsWith('class')->first() }}" @endif
@isset($confirm) x-on:click="toggleConfirmModal('{{ $confirm }}')" @endisset