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')
|
->panelLayout('grid')
|
||||||
->imagePreviewHeight('200')
|
->imagePreviewHeight('200')
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
Forms\Components\Textarea::make('description')
|
Placeholder::make('description')
|
||||||
->label('Beschreibung'),
|
->label('Beschreibung')
|
||||||
|
->content(fn ($record) => $record?->description ?? '—')
|
||||||
|
->columnSpanFull(),
|
||||||
Forms\Components\Select::make('recipes_id')
|
Forms\Components\Select::make('recipes_id')
|
||||||
->label('Rezept')
|
->label('Rezept')
|
||||||
->native(false)
|
->native(false)
|
||||||
|
|||||||
Reference in new issue
Block a user