mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Lazy load avatars
This commit is contained in:
@@ -49,7 +49,10 @@
|
||||
type="button"
|
||||
class="fi-tenant-menu-trigger"
|
||||
>
|
||||
<x-filament-panels::avatar.tenant :tenant="$currentTenant" />
|
||||
<x-filament-panels::avatar.tenant
|
||||
:tenant="$currentTenant"
|
||||
loading="lazy"
|
||||
/>
|
||||
|
||||
<span
|
||||
@if ($isSidebarCollapsibleOnDesktop)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
type="button"
|
||||
class="fi-user-menu-trigger"
|
||||
>
|
||||
<x-filament-panels::avatar.user :user="$user" />
|
||||
<x-filament-panels::avatar.user :user="$user" loading="lazy" />
|
||||
</button>
|
||||
</x-slot>
|
||||
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
|
||||
<x-filament-widgets::widget class="fi-account-widget">
|
||||
<x-filament::section>
|
||||
<x-filament-panels::avatar.user size="lg" :user="$user" />
|
||||
<x-filament-panels::avatar.user
|
||||
size="lg"
|
||||
:user="$user"
|
||||
loading="lazy"
|
||||
/>
|
||||
|
||||
<div class="fi-account-widget-main">
|
||||
<h2 class="fi-account-widget-heading">
|
||||
|
||||
Reference in New Issue
Block a user