From 9ad6bbdd51872acf0b2c437a818e250a82e6fc29 Mon Sep 17 00:00:00 2001 From: daurensky Date: Thu, 29 Feb 2024 10:30:04 +0600 Subject: [PATCH] refactor: update description form component, add max length --- src/UI/Filament/Resources/SocialProjectResource.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UI/Filament/Resources/SocialProjectResource.php b/src/UI/Filament/Resources/SocialProjectResource.php index 873fc8a..65954f2 100644 --- a/src/UI/Filament/Resources/SocialProjectResource.php +++ b/src/UI/Filament/Resources/SocialProjectResource.php @@ -27,8 +27,10 @@ public static function form(Forms\Form $form): Forms\Form Forms\Components\TextInput::make('title.'.$locale) ->label(__('admin-kit-social-projects::social-projects.resource.title')) ->required(), - Forms\Components\TextInput::make('subtitle.'.$locale) - ->label(__('admin-kit-social-projects::social-projects.resource.subtitle')), + Forms\Components\Textarea::make('subtitle.'.$locale) + ->label(__('admin-kit-social-projects::social-projects.resource.subtitle')) + ->rows(5) + ->maxLength(254), ])), ]) ->columns(1);