Make description read-only and auto-sized using Placeholder
Deploy / deploy (push) Successful in 14s
Deploy / deploy (push) Successful in 14s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a12502418b
commit
1e93aaa7d8
1 file changed
+4
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user