mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 01:34:45 +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')
|
Forms\Components\Textarea::make('startup')
|
||||||
->label('Startup Command')
|
->label('Startup Command')
|
||||||
->required()
|
->required()
|
||||||
->rows(1)
|
->live()
|
||||||
|
->rows(function ($state) {
|
||||||
|
return str($state)->explode("\n")->reduce(fn (int $carry, $line)
|
||||||
|
=> $carry + floor(strlen($line) / 125),
|
||||||
|
0);
|
||||||
|
})
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
|
|
||||||
|
|
||||||
Forms\Components\Repeater::make('s')
|
Forms\Components\Repeater::make('s')
|
||||||
->reorderable(false)
|
->reorderable(false)
|
||||||
->addable(false)
|
->addable(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user