width in admin

This commit is contained in:
salam committed 2026-01-13 07:56:26 +01:00
1 parent d830285d41
commit adf62cabf0
3 files changed
+11 -18

No files matched your search

@@ -26,13 +26,14 @@ class CompetitionGroupsTable
->color('gray') ->color('gray')
->label('Event') ->label('Event')
->icon(fn ($record) => $record->country->icon), ->icon(fn ($record) => $record->country->icon),
SelectColumn::make('level')
->options([
'top' => 'Top Level',
'medium' => 'Medium Level',
'base' => 'Basic Level',
]),
TextColumn::make('name'), TextColumn::make('name'),
SelectColumn::make('level')
->width(30)
->options([
'TOP' => 'TOP',
'MEDIUM' => 'MEDIUM',
'LOW' => 'LOW',
]),
]) ])
->filters([ ->filters([
@@ -3,19 +3,14 @@
namespace App\Filament\Resources\Events\Pages; namespace App\Filament\Resources\Events\Pages;
use App\Filament\Resources\Events\EventResource; use App\Filament\Resources\Events\EventResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords; use Filament\Resources\Pages\ListRecords;
use Filament\Support\Enums\Width;
class ListEvents extends ListRecords class ListEvents extends ListRecords
{ {
protected static string $resource = EventResource::class; protected static string $resource = EventResource::class;
protected $listeners = ['refreshBettypeMenu' => '$refresh']; protected string|Width|null $maxContentWidth = Width::Full;
protected function getHeaderActions(): array protected $listeners = ['refreshBettypeMenu' => '$refresh'];
{
return [
// CreateAction::make(),
];
}
} }
@@ -67,10 +67,7 @@ class AdminPanelProvider extends PanelProvider
->pages([ ->pages([
// Dashboard::class, // Dashboard::class,
]) ])
// ->maxContentWidth(Width::SevenExtraLarge) ->maxContentWidth(Width::ScreenTwoExtraLarge)
// ->maxContentWidth(Width::SevenExtraLarge)
->maxContentWidth(Width::Full)
->breadcrumbs(false) ->breadcrumbs(false)
->topNavigation() ->topNavigation()
->userMenuItems([ ->userMenuItems([