Skip to content

Commit

Permalink
feat(filament): added grid style to image list page (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrch authored Sep 23, 2024
1 parent 326f828 commit 997391f
Show file tree
Hide file tree
Showing 14 changed files with 653 additions and 623 deletions.
13 changes: 11 additions & 2 deletions app/Filament/Resources/Wiki/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Filament\Infolists\Infolist;
use Filament\Resources\RelationManagers\RelationGroup;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Columns\Layout\Stack;
use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Table;
use Illuminate\Support\Facades\Config;
Expand Down Expand Up @@ -146,7 +147,8 @@ public static function table(Table $table): Table
{
return parent::table($table)
->columns([
TextColumn::make(ImageModel::ATTRIBUTE_ID)
Stack::make([
TextColumn::make(ImageModel::ATTRIBUTE_ID)
->label(__('filament.fields.base.id'))
->sortable(),

Expand All @@ -159,7 +161,14 @@ public static function table(Table $table): Table
ImageColumn::make(ImageModel::ATTRIBUTE_PATH)
->label(__('filament.fields.image.image.name'))
->disk(Config::get('image.disk'))
->toggleable(),
->toggleable()
->width(100)
->height(150),
]),
])
->contentGrid([
'md' => 2,
'xl' => 3,
]);
}

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"bezhansalleh/filament-exceptions": "^2.1",
"cyrildewit/eloquent-viewable": "^7.0",
"fakerphp/faker": "^1.21",
"filament/filament": "^3.2.110",
"filament/forms": "^3.2.110",
"filament/filament": "^3.2.114",
"filament/forms": "^3.2.114",
"flowframe/laravel-trend": "*",
"guzzlehttp/guzzle": "^7.5",
"laravel-notification-channels/discord": "^1.4",
Expand All @@ -46,7 +46,7 @@
"laravel/tinker": "^2.8",
"league/flysystem-aws-s3-v3": "^3.0",
"leandrocfe/filament-apex-charts": "^3.1",
"malzariey/filament-daterangepicker-filter": "^3.0.4",
"malzariey/filament-daterangepicker-filter": "2.7",
"propaganistas/laravel-disposable-email": "^2.2",
"spatie/db-dumper": "^3.1.1",
"spatie/laravel-permission": "^6.0",
Expand Down
Loading

0 comments on commit 997391f

Please sign in to comment.