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, },