mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-22 14:56:38 +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;
|
||||
|
||||
// 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;
|
||||
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
height: heroHeight + insets.top,
|
||||
height: heroHeight + insets.top + tvosTopPadding,
|
||||
width: "100%",
|
||||
paddingTop: insets.top,
|
||||
paddingTop: insets.top + tvosTopPadding,
|
||||
}}
|
||||
>
|
||||
{/* Backdrop layers with crossfade */}
|
||||
|
||||
Reference in New Issue
Block a user