From 6e0be3d58e9c1ec77d5ccabe8a52546a2d1df1bf Mon Sep 17 00:00:00 2001 From: notCharles Date: Sun, 8 Dec 2024 11:04:23 -0500 Subject: [PATCH 1/2] increase action size on console --- app/Filament/Server/Pages/Console.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Filament/Server/Pages/Console.php b/app/Filament/Server/Pages/Console.php index cd3fb46d03..91741b745b 100644 --- a/app/Filament/Server/Pages/Console.php +++ b/app/Filament/Server/Pages/Console.php @@ -11,6 +11,7 @@ use Filament\Actions\Action; use Filament\Facades\Filament; use Filament\Pages\Page; +use Filament\Support\Enums\ActionSize; class Console extends Page { @@ -57,14 +58,17 @@ protected function getHeaderActions(): array return [ Action::make('start') ->color('primary') + ->size(ActionSize::ExtraLarge) ->action(fn () => $this->dispatch('setServerState', state: 'start')) ->disabled(fn () => $server->isInConflictState()), Action::make('restart') ->color('gray') + ->size(ActionSize::ExtraLarge) ->action(fn () => $this->dispatch('setServerState', state: 'restart')) ->disabled(fn () => $server->isInConflictState() || $server->retrieveStatus() == 'offline'), Action::make('stop') ->color('danger') + ->size(ActionSize::ExtraLarge) ->action(fn () => $this->dispatch('setServerState', state: 'stop')) ->disabled(fn () => $server->isInConflictState() || $server->retrieveStatus() == 'offline'), ]; From 0fd58e54c2d194dcb807a0982156f579c18246cb Mon Sep 17 00:00:00 2001 From: notCharles Date: Sun, 8 Dec 2024 11:05:02 -0500 Subject: [PATCH 2/2] fix layout on create database --- .../Resources/DatabaseResource/Pages/ListDatabases.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Filament/Server/Resources/DatabaseResource/Pages/ListDatabases.php b/app/Filament/Server/Resources/DatabaseResource/Pages/ListDatabases.php index 917cc91269..eae32e49b5 100644 --- a/app/Filament/Server/Resources/DatabaseResource/Pages/ListDatabases.php +++ b/app/Filament/Server/Resources/DatabaseResource/Pages/ListDatabases.php @@ -102,15 +102,16 @@ protected function getHeaderActions(): array ->createAnother(false) ->form([ Grid::make() - ->columns(3) + ->columns(2) ->schema([ Select::make('database_host_id') ->label('Database Host') + ->columnSpan(2) ->required() ->placeholder('Select Database Host') ->options(fn () => $server->node->databaseHosts->mapWithKeys(fn (DatabaseHost $databaseHost) => [$databaseHost->id => $databaseHost->name])), TextInput::make('database') - ->columnSpan(2) + ->columnSpan(1) ->label('Database Name') ->prefix('s'. $server->id . '_') ->hintIcon('tabler-question-mark')