Lasse die Stammdatentabelle bei schmaleren Fenstern umbrechen statt scrollen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f774d43647
commit
70695db290
1 file changed
+4
-1
@@ -168,6 +168,7 @@ public function table(Table $table): Table
|
||||
->label('Bezeichnung')
|
||||
->searchable(['label', 'slug'])
|
||||
->weight('semibold')
|
||||
->wrap()
|
||||
->description(fn (Model $record): string => 'Kennung: '.$record->slug
|
||||
.($record instanceof EditorialContentKind && $record->isSystem() ? ' · vom System verwendet' : '')),
|
||||
$materialart ? TextColumn::make('contexts')
|
||||
@@ -177,7 +178,8 @@ public function table(Table $table): Table
|
||||
(array) ($record->contexts ?? []),
|
||||
)))
|
||||
->badge()
|
||||
->color('gray') : null,
|
||||
->color('gray')
|
||||
->wrap() : null,
|
||||
TextColumn::make('is_active')
|
||||
->label('Status')
|
||||
->formatStateUsing(fn (bool $state): string => $state ? 'Aktiv' : 'Inaktiv')
|
||||
@@ -186,6 +188,7 @@ public function table(Table $table): Table
|
||||
TextColumn::make('verwendung')
|
||||
->label('Verwendung')
|
||||
->state(fn (Model $record): string => $this->verwendungText($record))
|
||||
->wrap()
|
||||
->action($this->verwendungAction()->name('verwendungZeigen')),
|
||||
])))
|
||||
->filters([
|
||||
|
||||
Reference in new issue
Block a user