diff --git a/src/view/com/util/PostEmbeds/ExternalLinkEmbed.tsx b/src/view/com/util/PostEmbeds/ExternalLinkEmbed.tsx
index 65eac12cd9..abeb3ff78c 100644
--- a/src/view/com/util/PostEmbeds/ExternalLinkEmbed.tsx
+++ b/src/view/com/util/PostEmbeds/ExternalLinkEmbed.tsx
@@ -8,19 +8,19 @@ import {PresentedExternal} from '@atproto/api/dist/client/types/app/bsky/embed/e
const ExternalLinkEmbed = ({
link,
onImagePress,
+ imageChild,
}: {
link: PresentedExternal
onImagePress: () => void
+ imageChild: React.ReactNode
}) => {
const pal = usePalette('default')
return (
<>
{link.thumb ? (
-
+
+ {imageChild}
+
) : undefined}
diff --git a/src/view/com/util/PostEmbeds/YoutubeEmbed.tsx b/src/view/com/util/PostEmbeds/YoutubeEmbed.tsx
index cd00086bcd..a5884bf3c1 100644
--- a/src/view/com/util/PostEmbeds/YoutubeEmbed.tsx
+++ b/src/view/com/util/PostEmbeds/YoutubeEmbed.tsx
@@ -49,15 +49,22 @@ const YoutubeEmbed = ({
return () => sub && sub.remove()
}, [displayVideoPlayer, store])
+ const imageChild = (
+
+
+
+ )
+
if (!displayVideoPlayer) {
return (
-
-
-
-
+
)
}
@@ -93,9 +100,9 @@ const styles = StyleSheet.create({
},
playButton: {
position: 'absolute',
- top: '20%',
alignSelf: 'center',
alignItems: 'center',
+ top: '44%',
justifyContent: 'center',
backgroundColor: 'black',
padding: 10,
diff --git a/src/view/com/util/images/Image.tsx b/src/view/com/util/images/Image.tsx
index 29c1d32bc6..fc786acc8e 100644
--- a/src/view/com/util/images/Image.tsx
+++ b/src/view/com/util/images/Image.tsx
@@ -14,12 +14,14 @@ export function Image({
onLongPress,
onPressIn,
style,
+ children = null,
}: {
uri: string
onPress?: () => void
onLongPress?: () => void
onPressIn?: () => void
style?: StyleProp
+ children?: React.ReactNode
}) {
const [aspectRatio, setAspectRatio] = React.useState(1)
const onLoad = (e: OnLoadEvent) => {
@@ -44,6 +46,7 @@ export function Image({
defaultSource={LOADING}
onLoad={onLoad}
/>
+ {children}
)
}