mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-07 13:02:52 +01:00
padding for apple tv
Adding some more padding for tvos to clear the top Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
@@ -378,14 +378,16 @@ export const TVHeroCarousel: React.FC<TVHeroCarouselProps> = ({
|
|||||||
|
|
||||||
if (items.length === 0) return null;
|
if (items.length === 0) return null;
|
||||||
|
|
||||||
|
// Extra top padding for tvOS to clear the menu bar
|
||||||
|
const tvosTopPadding = Platform.OS === "ios" ? scaleSize(30) : 0;
|
||||||
const heroHeight = SCREEN_HEIGHT * sizes.padding.heroHeight;
|
const heroHeight = SCREEN_HEIGHT * sizes.padding.heroHeight;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
height: heroHeight + insets.top,
|
height: heroHeight + insets.top + tvosTopPadding,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
paddingTop: insets.top,
|
paddingTop: insets.top + tvosTopPadding,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Backdrop layers with crossfade */}
|
{/* Backdrop layers with crossfade */}
|
||||||
|
|||||||
Reference in New Issue
Block a user