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')
|
||||
->size('100%')
|
||||
->extraImgAttributes([
|
||||
'class' => 'rounded-md'
|
||||
'class' => 'rounded-md',
|
||||
'loading' => 'lazy'
|
||||
])
|
||||
->visibility('private'),
|
||||
TextColumn::make('desc')
|
||||
|
|
|
|||
|
|
@ -148,7 +148,11 @@ class ItemResource extends Resource
|
|||
->label('Image')
|
||||
->translateLabel()
|
||||
->disk('local')
|
||||
->visibility('private'),
|
||||
->visibility('private')
|
||||
->extraImgAttributes([
|
||||
'class' => 'rounded-md',
|
||||
'loading' => 'lazy'
|
||||
]),
|
||||
IconColumn::make('can_be_loaned')
|
||||
->label('Can be loaned')
|
||||
->translateLabel()
|
||||
|
|
|
|||
Loading…
Reference in a new issue