From 15971aaa94de619c02070068ff2b13752c0aa505 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Fri, 12 Apr 2024 02:04:03 -0400 Subject: [PATCH] Auto expand the startup command --- app/Filament/Resources/ServerResource.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Filament/Resources/ServerResource.php b/app/Filament/Resources/ServerResource.php index 6af5c6d62..4f7ab8dc6 100644 --- a/app/Filament/Resources/ServerResource.php +++ b/app/Filament/Resources/ServerResource.php @@ -265,9 +265,8 @@ class ServerResource extends Resource ->required() ->live() ->rows(function ($state) { - return str($state)->explode("\n")->reduce(fn (int $carry, $line) - => $carry + floor(strlen($line) / 125), - 0); + return str($state)->explode("\n")->reduce(fn (int $carry, $line) => $carry + floor(strlen($line) / 125), + 0); }) ->columnSpanFull(),