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')
|
->label('Bezeichnung')
|
||||||
->searchable(['label', 'slug'])
|
->searchable(['label', 'slug'])
|
||||||
->weight('semibold')
|
->weight('semibold')
|
||||||
|
->wrap()
|
||||||
->description(fn (Model $record): string => 'Kennung: '.$record->slug
|
->description(fn (Model $record): string => 'Kennung: '.$record->slug
|
||||||
.($record instanceof EditorialContentKind && $record->isSystem() ? ' · vom System verwendet' : '')),
|
.($record instanceof EditorialContentKind && $record->isSystem() ? ' · vom System verwendet' : '')),
|
||||||
$materialart ? TextColumn::make('contexts')
|
$materialart ? TextColumn::make('contexts')
|
||||||
@@ -177,7 +178,8 @@ public function table(Table $table): Table
|
|||||||
(array) ($record->contexts ?? []),
|
(array) ($record->contexts ?? []),
|
||||||
)))
|
)))
|
||||||
->badge()
|
->badge()
|
||||||
->color('gray') : null,
|
->color('gray')
|
||||||
|
->wrap() : null,
|
||||||
TextColumn::make('is_active')
|
TextColumn::make('is_active')
|
||||||
->label('Status')
|
->label('Status')
|
||||||
->formatStateUsing(fn (bool $state): string => $state ? 'Aktiv' : 'Inaktiv')
|
->formatStateUsing(fn (bool $state): string => $state ? 'Aktiv' : 'Inaktiv')
|
||||||
@@ -186,6 +188,7 @@ public function table(Table $table): Table
|
|||||||
TextColumn::make('verwendung')
|
TextColumn::make('verwendung')
|
||||||
->label('Verwendung')
|
->label('Verwendung')
|
||||||
->state(fn (Model $record): string => $this->verwendungText($record))
|
->state(fn (Model $record): string => $this->verwendungText($record))
|
||||||
|
->wrap()
|
||||||
->action($this->verwendungAction()->name('verwendungZeigen')),
|
->action($this->verwendungAction()->name('verwendungZeigen')),
|
||||||
])))
|
])))
|
||||||
->filters([
|
->filters([
|
||||||
|
|||||||
Reference in new issue
Block a user