From 21e096a58339a2989d393b383677ec36029d4607 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 2 Feb 2026 15:07:57 -0600 Subject: [PATCH] update media previews in notifications --- src/components/MediaPreview.tsx | 46 +++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/src/components/MediaPreview.tsx b/src/components/MediaPreview.tsx index acd4b313fb..542e546c42 100644 --- a/src/components/MediaPreview.tsx +++ b/src/components/MediaPreview.tsx @@ -50,7 +50,11 @@ export function Embed({ } else if (e.type === 'video') { return ( - + {e.view.presentation === 'gif' ? ( + + ) : ( + + )} ) } else if ( @@ -81,11 +85,29 @@ export function ImageItem({ alt, children, }: { - thumbnail: string + thumbnail?: string alt?: string children?: React.ReactNode }) { const t = useTheme() + + if (!thumbnail) { + return ( + + {children} + + ) + } + return ( {alt} @@ -125,22 +147,6 @@ export function VideoItem({ thumbnail?: string alt?: string }) { - if (!thumbnail) { - return ( - - - - ) - } return ( @@ -157,7 +163,7 @@ const styles = StyleSheet.create({ paddingHorizontal: 6, paddingVertical: 3, position: 'absolute', - right: 5, + left: 5, bottom: 5, zIndex: 2, },