@@ -95,18 +81,20 @@ export function AttachmentRenderer({ attachment }: AttachmentRendererProps) {
if (mimetype.startsWith('image/')) {
const { width, height } = attachment;
return (
-
-

openImagePreview(attUrl)}
- loading="lazy"
- />
- {federationOverlayBadge}
+
+
+

openImagePreview(attUrl)}
+ loading="lazy"
+ />
+
+ {federationInlineBadge &&
{federationInlineBadge}
}
);
}
@@ -115,20 +103,22 @@ export function AttachmentRenderer({ attachment }: AttachmentRendererProps) {
const { width, height } = attachment;
const hasDimensions = width && height;
return (
-
-
);
}