diff --git a/app/Filament/Resources/ServerResource/Pages/CreateServer.php b/app/Filament/Resources/ServerResource/Pages/CreateServer.php index 7f0c6b39b..bc602752c 100644 --- a/app/Filament/Resources/ServerResource/Pages/CreateServer.php +++ b/app/Filament/Resources/ServerResource/Pages/CreateServer.php @@ -496,32 +496,31 @@ class CreateServer extends CreateRecord ->columns(4) ->columnSpanFull() ->schema([ - Forms\Components\ToggleButtons::make('unlimited_mem') - ->label('Memory')->inlineLabel()->inline() - ->default(true) - ->afterStateUpdated(fn (Forms\Set $set) => $set('memory', 0)) - ->live() - ->options([ - true => 'Unlimited', - false => 'Limited', - ]) - ->colors([ - true => 'primary', - false => 'warning', - ]) - ->columnSpan(2), - - Forms\Components\TextInput::make('memory') - ->dehydratedWhenHidden() - ->hidden(fn (Forms\Get $get) => $get('unlimited_mem')) - ->label('Memory Limit')->inlineLabel() - ->suffix('MB') - ->default(0) - ->required() - ->columnSpan(2) - ->numeric(), - ]), + Forms\Components\ToggleButtons::make('unlimited_mem') + ->label('Memory')->inlineLabel()->inline() + ->default(true) + ->afterStateUpdated(fn (Forms\Set $set) => $set('memory', 0)) + ->live() + ->options([ + true => 'Unlimited', + false => 'Limited', + ]) + ->colors([ + true => 'primary', + false => 'warning', + ]) + ->columnSpan(2), + Forms\Components\TextInput::make('memory') + ->dehydratedWhenHidden() + ->hidden(fn (Forms\Get $get) => $get('unlimited_mem')) + ->label('Memory Limit')->inlineLabel() + ->suffix('MB') + ->default(0) + ->required() + ->columnSpan(2) + ->numeric(), + ]), Forms\Components\Grid::make() ->columns(4) @@ -553,7 +552,6 @@ class CreateServer extends CreateRecord ->numeric(), ]), - Forms\Components\Grid::make() ->columns(4) ->columnSpanFull()