From 0fd58e54c2d194dcb807a0982156f579c18246cb Mon Sep 17 00:00:00 2001 From: notCharles Date: Sun, 8 Dec 2024 11:05:02 -0500 Subject: [PATCH] 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')