From 6382a91fb0de911a7f99f5eaa17ed5c050fb7905 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 4 Sep 2024 10:59:06 -0700 Subject: [Video] Use same play button for gifs and videos (#5144) --- src/components/MediaPreview.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/components/MediaPreview.tsx') diff --git a/src/components/MediaPreview.tsx b/src/components/MediaPreview.tsx index 17bae55b5..7d7cb2b4c 100644 --- a/src/components/MediaPreview.tsx +++ b/src/components/MediaPreview.tsx @@ -11,8 +11,8 @@ import {Trans} from '@lingui/macro' import {parseTenorGif} from '#/lib/strings/embed-player' import {atoms as a} from '#/alf' -import {Play_Filled_Corner2_Rounded as PlayIcon} from '#/components/icons/Play' import {Text} from '#/components/Typography' +import {PlayButtonIcon} from '#/components/video/PlayButtonIcon' /** * Streamlined MediaPreview component which just handles images, gifs, and videos @@ -111,6 +111,9 @@ export function ImageItem({ export function GifItem({thumbnail, alt}: {thumbnail: string; alt?: string}) { return ( + + + GIF @@ -137,14 +140,14 @@ export function VideoItem({ a.justify_center, a.align_center, ]}> - + ) } return ( - + ) -- cgit 1.4.1