diff options
author | Hailey <me@haileyok.com> | 2024-09-04 10:59:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 10:59:06 -0700 |
commit | 6382a91fb0de911a7f99f5eaa17ed5c050fb7905 (patch) | |
tree | 525fb4b54b2fbd8df5cf882943a97d0542ee2259 /src/view/com/util/post-embeds/GifEmbed.tsx | |
parent | 5f5c14d044042e25b78bd173d245d5790843ff85 (diff) | |
download | voidsky-6382a91fb0de911a7f99f5eaa17ed5c050fb7905.tar.zst |
[Video] Use same play button for gifs and videos (#5144)
Diffstat (limited to 'src/view/com/util/post-embeds/GifEmbed.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/GifEmbed.tsx | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/view/com/util/post-embeds/GifEmbed.tsx b/src/view/com/util/post-embeds/GifEmbed.tsx index 31c4419b5..5b6e1c9dc 100644 --- a/src/view/com/util/post-embeds/GifEmbed.tsx +++ b/src/view/com/util/post-embeds/GifEmbed.tsx @@ -8,7 +8,6 @@ import { ViewStyle, } from 'react-native' import {AppBskyEmbedExternal} from '@atproto/api' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -22,6 +21,7 @@ import {atoms as a, useTheme} from '#/alf' import {Loader} from '#/components/Loader' import * as Prompt from '#/components/Prompt' import {Text} from '#/components/Typography' +import {PlayButtonIcon} from '#/components/video/PlayButtonIcon' import {GifView} from '../../../../../modules/expo-bluesky-gif-view' import {GifViewStateChangeEvent} from '../../../../../modules/expo-bluesky-gif-view/src/GifView.types' @@ -69,24 +69,7 @@ function PlaybackControls({ </View> </View> ) : !isPlaying ? ( - <View - style={[ - a.rounded_full, - a.align_center, - a.justify_center, - { - backgroundColor: t.palette.primary_500, - width: 60, - height: 60, - }, - ]}> - <FontAwesomeIcon - icon="play" - size={42} - color="white" - style={{marginLeft: 8}} - /> - </View> + <PlayButtonIcon /> ) : undefined} </Pressable> ) @@ -155,7 +138,6 @@ export function GifEmbed({ accessibilityHint={_(msg`Animated GIF`)} accessibilityLabel={parsedAlt.alt} /> - {!hideAlt && parsedAlt.isPreferred && <AltText text={parsedAlt.alt} />} </View> </View> @@ -183,7 +165,6 @@ function AltText({text}: {text: string}) { <Trans>ALT</Trans> </Text> </TouchableOpacity> - <Prompt.Outer control={control}> <Prompt.TitleText> <Trans>Alt Text</Trans> |