mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	Fix episodes display time overflow
This commit is contained in:
		
							parent
							
								
									91498f45cd
								
							
						
					
					
						commit
						991e5004d7
					
				@ -23,9 +23,11 @@ import { CircularProgress } from "@kyoo/primitives";
 | 
				
			|||||||
import { NavbarRight, NavbarTitle } from "@kyoo/ui";
 | 
					import { NavbarRight, NavbarTitle } from "@kyoo/ui";
 | 
				
			||||||
import { Redirect, SplashScreen, Stack } from "expo-router";
 | 
					import { Redirect, SplashScreen, Stack } from "expo-router";
 | 
				
			||||||
import { useContext, useEffect } from "react";
 | 
					import { useContext, useEffect } from "react";
 | 
				
			||||||
 | 
					import { useSafeAreaInsets } from "react-native-safe-area-context";
 | 
				
			||||||
import { useTheme } from "yoshiki/native";
 | 
					import { useTheme } from "yoshiki/native";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default function SignGuard() {
 | 
					export default function SignGuard() {
 | 
				
			||||||
 | 
						const insets = useSafeAreaInsets();
 | 
				
			||||||
	const theme = useTheme();
 | 
						const theme = useTheme();
 | 
				
			||||||
	// TODO: support guest accounts on mobile too.
 | 
						// TODO: support guest accounts on mobile too.
 | 
				
			||||||
	const account = useAccount();
 | 
						const account = useAccount();
 | 
				
			||||||
@ -46,6 +48,9 @@ export default function SignGuard() {
 | 
				
			|||||||
				headerRight: () => <NavbarRight />,
 | 
									headerRight: () => <NavbarRight />,
 | 
				
			||||||
				contentStyle: {
 | 
									contentStyle: {
 | 
				
			||||||
					backgroundColor: theme.background,
 | 
										backgroundColor: theme.background,
 | 
				
			||||||
 | 
										paddingBottom: insets.bottom,
 | 
				
			||||||
 | 
										paddingLeft: insets.left,
 | 
				
			||||||
 | 
										paddingRight: insets.right,
 | 
				
			||||||
				},
 | 
									},
 | 
				
			||||||
				headerStyle: {
 | 
									headerStyle: {
 | 
				
			||||||
					backgroundColor: theme.accent,
 | 
										backgroundColor: theme.accent,
 | 
				
			||||||
 | 
				
			|||||||
@ -241,7 +241,7 @@ export const EpisodeLine = ({
 | 
				
			|||||||
				>
 | 
									>
 | 
				
			||||||
					<Skeleton>
 | 
										<Skeleton>
 | 
				
			||||||
						{isLoading || (
 | 
											{isLoading || (
 | 
				
			||||||
							<H6 aria-level={undefined} {...css("title")}>
 | 
												<H6 aria-level={undefined} {...css([{ flexShrink: 1 }, "title"])}>
 | 
				
			||||||
								{name ?? t("show.episodeNoMetadata")}
 | 
													{name ?? t("show.episodeNoMetadata")}
 | 
				
			||||||
							</H6>
 | 
												</H6>
 | 
				
			||||||
						)}
 | 
											)}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user