diff --git a/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx b/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx index d191e9f66..913ae3fb1 100644 --- a/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx +++ b/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx @@ -260,7 +260,7 @@ const TabBarBackground = () => { ))} diff --git a/apps/mobile/src/modules/discover/Recommendations.tsx b/apps/mobile/src/modules/discover/Recommendations.tsx index 434295c46..ccdcf6af2 100644 --- a/apps/mobile/src/modules/discover/Recommendations.tsx +++ b/apps/mobile/src/modules/discover/Recommendations.tsx @@ -101,6 +101,7 @@ export const Recommendations = () => { {loadedTabIndex.has(index) && ( { export const RecommendationTab: TabComponent<{ contentContainerStyle?: ContentStyle - + insets?: { top?: number; bottom?: number } reanimatedScrollY?: SharedValue -}> = ({ tab, isSelected, contentContainerStyle, reanimatedScrollY, ...rest }) => { +}> = ({ + tab, + isSelected, + contentContainerStyle, + reanimatedScrollY, + insets: customInsets, + ...rest +}) => { const { data, isLoading } = useQuery({ queryKey: ["rsshub-popular", "cache", tab.value], queryFn: () => fetchRsshubPopular(tab.value, "all").then((res) => res.data), @@ -241,8 +249,8 @@ export const RecommendationTab: TabComponent<{ contentContainerStyle={contentContainerStyle} scrollIndicatorInsets={{ right: -2, - top: 0, - bottom: insets.bottom, + top: customInsets?.top ?? 0, + bottom: customInsets?.bottom ?? insets.bottom, }} removeClippedSubviews /> @@ -261,7 +269,8 @@ const ItemRenderer = ({ // Rendering header return ( - {item} + {item} + ) } else { diff --git a/apps/mobile/src/modules/discover/search-tabs/__base.tsx b/apps/mobile/src/modules/discover/search-tabs/__base.tsx index 2dcbbc098..e21e57a4b 100644 --- a/apps/mobile/src/modules/discover/search-tabs/__base.tsx +++ b/apps/mobile/src/modules/discover/search-tabs/__base.tsx @@ -74,10 +74,7 @@ export function BaseSearchPageFlatList({ } const itemSeparator = ( - + ) export const ItemSeparator = () => itemSeparator diff --git a/apps/mobile/src/modules/entry-list/ItemSeparator.tsx b/apps/mobile/src/modules/entry-list/ItemSeparator.tsx index bf6e6f06c..f90ab1382 100644 --- a/apps/mobile/src/modules/entry-list/ItemSeparator.tsx +++ b/apps/mobile/src/modules/entry-list/ItemSeparator.tsx @@ -3,7 +3,7 @@ import { View } from "react-native" const el = ( @@ -16,7 +16,7 @@ export const ItemSeparator = () => { const el2 = ( diff --git a/apps/mobile/src/modules/player/PlayerTabBar.tsx b/apps/mobile/src/modules/player/PlayerTabBar.tsx index 75f6980ab..843408401 100644 --- a/apps/mobile/src/modules/player/PlayerTabBar.tsx +++ b/apps/mobile/src/modules/player/PlayerTabBar.tsx @@ -47,10 +47,7 @@ export function PlayerTabBar({ className }: { className?: string }) { return ( { diff --git a/apps/mobile/src/modules/settings/routes/Actions.tsx b/apps/mobile/src/modules/settings/routes/Actions.tsx index d92f2ad6e..f9a3f8caa 100644 --- a/apps/mobile/src/modules/settings/routes/Actions.tsx +++ b/apps/mobile/src/modules/settings/routes/Actions.tsx @@ -135,7 +135,7 @@ const SaveRuleButton = ({ disabled }: { disabled?: boolean }) => { const ItemSeparatorComponent = () => { return ( diff --git a/apps/mobile/src/modules/settings/routes/ManageList.tsx b/apps/mobile/src/modules/settings/routes/ManageList.tsx index 45540ffe0..59d288236 100644 --- a/apps/mobile/src/modules/settings/routes/ManageList.tsx +++ b/apps/mobile/src/modules/settings/routes/ManageList.tsx @@ -120,7 +120,7 @@ const ListImpl: React.FC<{ id: string }> = ({ id }) => { const SeparatorComponent = () => { return ( diff --git a/apps/mobile/src/modules/subscription/ItemSeparator.tsx b/apps/mobile/src/modules/subscription/ItemSeparator.tsx index 120f47094..2d6dd882f 100644 --- a/apps/mobile/src/modules/subscription/ItemSeparator.tsx +++ b/apps/mobile/src/modules/subscription/ItemSeparator.tsx @@ -8,7 +8,7 @@ const el = ( style={{ marginHorizontal: GROUPED_LIST_MARGIN }} > @@ -24,7 +24,7 @@ const el2 = ( style={{ marginHorizontal: GROUPED_LIST_MARGIN }} > diff --git a/apps/mobile/src/screens/(stack)/recommendation/RecommendationCategoryScreen.tsx b/apps/mobile/src/screens/(stack)/recommendation/RecommendationCategoryScreen.tsx index 57efc4664..3dc688b7b 100644 --- a/apps/mobile/src/screens/(stack)/recommendation/RecommendationCategoryScreen.tsx +++ b/apps/mobile/src/screens/(stack)/recommendation/RecommendationCategoryScreen.tsx @@ -25,6 +25,7 @@ export const RecommendationCategoryScreen: NavigationControllerView<{