mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-10-27 00:07:13 +01:00
LAzy load on images
This commit is contained in:
parent
b62cebb2eb
commit
9394890c0c
2 changed files with 7 additions and 2 deletions
|
|
@ -71,7 +71,8 @@ class Reserve extends BasePage implements HasTable
|
||||||
->disk('local')
|
->disk('local')
|
||||||
->size('100%')
|
->size('100%')
|
||||||
->extraImgAttributes([
|
->extraImgAttributes([
|
||||||
'class' => 'rounded-md'
|
'class' => 'rounded-md',
|
||||||
|
'loading' => 'lazy'
|
||||||
])
|
])
|
||||||
->visibility('private'),
|
->visibility('private'),
|
||||||
TextColumn::make('desc')
|
TextColumn::make('desc')
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,11 @@ class ItemResource extends Resource
|
||||||
->label('Image')
|
->label('Image')
|
||||||
->translateLabel()
|
->translateLabel()
|
||||||
->disk('local')
|
->disk('local')
|
||||||
->visibility('private'),
|
->visibility('private')
|
||||||
|
->extraImgAttributes([
|
||||||
|
'class' => 'rounded-md',
|
||||||
|
'loading' => 'lazy'
|
||||||
|
]),
|
||||||
IconColumn::make('can_be_loaned')
|
IconColumn::make('can_be_loaned')
|
||||||
->label('Can be loaned')
|
->label('Can be loaned')
|
||||||
->translateLabel()
|
->translateLabel()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue