From 27cd73efab2491c38ef3e1f2cfd0be7e27e12db6 Mon Sep 17 00:00:00 2001 From: herrrta <73949927+herrrta@users.noreply.github.com> Date: Wed, 5 Mar 2025 01:24:09 -0500 Subject: [PATCH] fix: Jellyseerr slider bottom padding for posters --- components/jellyseerr/discover/Discover.tsx | 4 ++-- components/jellyseerr/discover/Slide.tsx | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/jellyseerr/discover/Discover.tsx b/components/jellyseerr/discover/Discover.tsx index e5a84c1a..847b7e7b 100644 --- a/components/jellyseerr/discover/Discover.tsx +++ b/components/jellyseerr/discover/Discover.tsx @@ -27,7 +27,7 @@ const Discover: React.FC = ({ sliders }) => { {sortedSliders.map(slide => { switch (slide.type) { case DiscoverSliderType.RECENT_REQUESTS: - return + return case DiscoverSliderType.NETWORKS: return case DiscoverSliderType.STUDIOS: @@ -40,7 +40,7 @@ const Discover: React.FC = ({ sliders }) => { case DiscoverSliderType.UPCOMING_MOVIES: case DiscoverSliderType.POPULAR_TV: case DiscoverSliderType.UPCOMING_TV: - return + return } })} diff --git a/components/jellyseerr/discover/Slide.tsx b/components/jellyseerr/discover/Slide.tsx index f110eb15..19296fbf 100644 --- a/components/jellyseerr/discover/Slide.tsx +++ b/components/jellyseerr/discover/Slide.tsx @@ -5,9 +5,11 @@ import { Text } from "@/components/common/Text"; import { FlashList } from "@shopify/flash-list"; import {View, ViewProps} from "react-native"; import { t } from "i18next"; +import {ContentStyle} from "@shopify/flash-list/src/FlashListProps"; export interface SlideProps { slide: DiscoverSlider; + contentContainerStyle?: ContentStyle; } interface Props extends SlideProps { @@ -27,6 +29,7 @@ const Slide = ({ renderItem, keyExtractor, onEndReached, + contentContainerStyle, ...props }: PropsWithChildren & ViewProps> ) => { @@ -39,6 +42,7 @@ const Slide = ({ horizontal contentContainerStyle={{ paddingHorizontal: 16, + ...(contentContainerStyle ? contentContainerStyle : {}) }} showsHorizontalScrollIndicator={false} keyExtractor={keyExtractor}