mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 16:44:44 +02:00
Auto expand the startup command
This commit is contained in:
parent
695ebd35a4
commit
15971aaa94
@ -265,9 +265,8 @@ class ServerResource extends Resource
|
|||||||
->required()
|
->required()
|
||||||
->live()
|
->live()
|
||||||
->rows(function ($state) {
|
->rows(function ($state) {
|
||||||
return str($state)->explode("\n")->reduce(fn (int $carry, $line)
|
return str($state)->explode("\n")->reduce(fn (int $carry, $line) => $carry + floor(strlen($line) / 125),
|
||||||
=> $carry + floor(strlen($line) / 125),
|
0);
|
||||||
0);
|
|
||||||
})
|
})
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user