ErrorBoundary for notes, wip notif settings

This commit is contained in:
Martti Malmi
2023-12-14 15:29:27 +02:00
parent 2bf62f3a03
commit 20a0a3aea4
12 changed files with 83 additions and 23 deletions

View File

@ -39,5 +39,5 @@ function SpotlightFromThread({ onClose }: { onClose: () => void }) {
a => a.type === "media" && (a.mimeType?.startsWith("image/") || a.mimeType?.startsWith("video/")),
);
if (images.length === 0) return;
return <SpotlightMedia images={images.map(a => a.content)} idx={0} onClose={onClose} />;
return <SpotlightMedia className="w-full" images={images.map(a => a.content)} idx={0} onClose={onClose} />;
}