Make avatar imager resilient with upstream fallback everywhere
This commit is contained in:
1 parent
1bbd809b43
commit
1df1ffc3e9
13 files changed
+277
-210
No files matched your search
@@ -1,4 +1,8 @@
|
||||
import { type AvatarOptions, getAvatarUrl } from "@/lib/imager";
|
||||
import {
|
||||
type AvatarOptions,
|
||||
avatarImageOnError,
|
||||
getAvatarUrl,
|
||||
} from "@/lib/imager";
|
||||
|
||||
interface AvatarImageProps {
|
||||
figure: string;
|
||||
@@ -33,6 +37,7 @@ export function AvatarImage({
|
||||
height={height}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
onError={avatarImageOnError}
|
||||
style={{ maxWidth: width, maxHeight: height }}
|
||||
className={`image-pixelated object-contain ${className}`}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user