From 1e93aaa7d8a767e0d644318e7e1ab3e1099b3b14 Mon Sep 17 00:00:00 2001 From: Malek Tellissi Date: Sat, 12 Sep 2026 05:22:32 +0200 Subject: [PATCH] Make description read-only and auto-sized using Placeholder Co-Authored-By: Claude Sonnet 4.6 --- app/Filament/User/Resources/ProductResource.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Filament/User/Resources/ProductResource.php b/app/Filament/User/Resources/ProductResource.php index 78ae032..61b5cab 100644 --- a/app/Filament/User/Resources/ProductResource.php +++ b/app/Filament/User/Resources/ProductResource.php @@ -46,8 +46,10 @@ class ProductResource extends Resource { ->panelLayout('grid') ->imagePreviewHeight('200') ->columnSpanFull(), - Forms\Components\Textarea::make('description') - ->label('Beschreibung'), + Placeholder::make('description') + ->label('Beschreibung') + ->content(fn ($record) => $record?->description ?? '—') + ->columnSpanFull(), Forms\Components\Select::make('recipes_id') ->label('Rezept') ->native(false)