-

(
-

+
))}
diff --git a/src/renderer/index.css b/src/renderer/index.css
index 0c67ad46..3b4e7114 100644
--- a/src/renderer/index.css
+++ b/src/renderer/index.css
@@ -5,7 +5,7 @@
/* Fixed webkit bug: https://bugs.webkit.org/show_bug.cgi?id=243601 */
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
img[loading='lazy'] {
- clip-path: inset(0.1px);
+ clip-path: inset(0.6px);
}
}
diff --git a/src/shared/accounts/active.tsx b/src/shared/accounts/active.tsx
index 016c9159..21c9a6e5 100644
--- a/src/shared/accounts/active.tsx
+++ b/src/shared/accounts/active.tsx
@@ -1,3 +1,4 @@
+import { Image } from '@lume/shared/image';
import { DEFAULT_AVATAR } from '@lume/stores/constants';
export default function ActiveAccount({ user }: { user: any }) {
@@ -5,7 +6,11 @@ export default function ActiveAccount({ user }: { user: any }) {
return (
);
}
diff --git a/src/shared/accounts/inactive.tsx b/src/shared/accounts/inactive.tsx
index c6cad917..5b0afc87 100644
--- a/src/shared/accounts/inactive.tsx
+++ b/src/shared/accounts/inactive.tsx
@@ -1,3 +1,4 @@
+import { Image } from '@lume/shared/image';
import { DEFAULT_AVATAR } from '@lume/stores/constants';
export default function InactiveAccount({ user }: { user: any }) {
@@ -5,7 +6,11 @@ export default function InactiveAccount({ user }: { user: any }) {
return (
-

+
);
}
diff --git a/src/shared/image.tsx b/src/shared/image.tsx
new file mode 100644
index 00000000..f50e8e41
--- /dev/null
+++ b/src/shared/image.tsx
@@ -0,0 +1,9 @@
+import { DEFAULT_AVATAR } from '@lume/stores/constants';
+
+export const Image = (props) => {
+ const addImageFallback = (event) => {
+ event.currentTarget.src = DEFAULT_AVATAR;
+ };
+
+ return
![]()
;
+};
diff --git a/src/shared/profile/metadata.tsx b/src/shared/profile/metadata.tsx
index a0064bc7..c54c4dae 100644
--- a/src/shared/profile/metadata.tsx
+++ b/src/shared/profile/metadata.tsx
@@ -1,4 +1,5 @@
-import { RelayContext } from '@lume/shared/relaysProvider';
+import { Image } from '@lume/shared/image';
+import { RelayContext } from '@lume/shared/relayProvider';
import { DEFAULT_AVATAR, READONLY_RELAYS } from '@lume/stores/constants';
import { shortenKey } from '@lume/utils/shortenKey';
@@ -21,11 +22,11 @@ export default function ProfileMetadata({ id }: { id: string }) {
<>
-

+
-

+