diff --git a/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadata.tsx b/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadata.tsx index 8b6d2a180..72ee0bbdb 100644 --- a/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadata.tsx +++ b/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadata.tsx @@ -21,12 +21,14 @@ const FeaturedMetadata = ({ playlistId, style, hidden, + isMobile, }: { item: PlaylistItem | null; loading: boolean; playlistId: string | undefined; style?: CSSProperties; hidden?: boolean; + isMobile?: boolean; }) => { const navigate = useNavigate(); const { t } = useTranslation('common'); @@ -37,6 +39,8 @@ const FeaturedMetadata = ({ !isContentType(item, MEDIA_CONTENT_TYPE.hub) && !isContentType(item, MEDIA_CONTENT_TYPE.liveChannel) && !isContentType(item, MEDIA_CONTENT_TYPE.page); const hasVideo = item.sources.find((source) => source.file.indexOf('.m3u8') > -1 || source.file.indexOf('.mp4') > -1); + const showStartWatchingButton = hasVideo && isWatchable && !isMobile; + return (
{!loading && item?.title}
- {hasVideo && isWatchable && } + {showStartWatchingButton && }
diff --git a/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadataMobile.tsx b/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadataMobile.tsx index 55efa9685..a3587d252 100644 --- a/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadataMobile.tsx +++ b/packages/ui-react/src/components/FeaturedShelf/FeaturedMetadataMobile.tsx @@ -109,14 +109,16 @@ const FeaturedMetadataMobile = ({ item, leftItem, rightItem, playlistId, loading playlistId={playlistId} style={{ left: '-100%' }} hidden={direction !== 'left' && swipeAction !== 'slide'} + isMobile /> - +