Expand text area to make it look nicer

This commit is contained in:
Lance Pioch 2024-04-11 11:31:38 -04:00
parent 203289fd38
commit 27f05b5f95

View File

@ -230,10 +230,14 @@ class ServerResource extends Resource
Forms\Components\Textarea::make('startup')
->label('Startup Command')
->required()
->rows(1)
->live()
->rows(function ($state) {
return str($state)->explode("\n")->reduce(fn (int $carry, $line)
=> $carry + floor(strlen($line) / 125),
0);
})
->columnSpanFull(),
Forms\Components\Repeater::make('s')
->reorderable(false)
->addable(false)