From 97b1ec4386432f21e8426ac75e505a1f62b9bafe Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Wed, 20 Mar 2024 14:59:07 +0300 Subject: [PATCH] Audio player fix (play by track click) --- src/components/Article/AudioPlayer/PlayerPlaylist.tsx | 1 + src/components/Views/Expo/Expo.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx index ff0661c9..81e69d58 100644 --- a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx +++ b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx @@ -39,6 +39,7 @@ export const PlayerPlaylist = (props: Props) => { } const play = (index: number) => { + props.onPlayMedia(index) const mi = props.media[index] gtag('event', 'select_item', { item_list_id: props.articleSlug, diff --git a/src/components/Views/Expo/Expo.tsx b/src/components/Views/Expo/Expo.tsx index e4541922..eddd12a4 100644 --- a/src/components/Views/Expo/Expo.tsx +++ b/src/components/Views/Expo/Expo.tsx @@ -24,8 +24,8 @@ type Props = { layout: LayoutType } -export const PRERENDERED_ARTICLES_COUNT = 36 -const LOAD_MORE_PAGE_SIZE = 12 +export const PRERENDERED_ARTICLES_COUNT = 37 +const LOAD_MORE_PAGE_SIZE = 11 export const Expo = (props: Props) => { const [isLoaded, setIsLoaded] = createSignal(Boolean(props.shouts))