mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-27 22:44:46 +02:00
Expand text area to make it look nicer
This commit is contained in:
parent
203289fd38
commit
27f05b5f95
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user