Fix episodes display time overflow

This commit is contained in:
Zoe Roux 2023-12-12 23:03:02 +01:00
parent 91498f45cd
commit 991e5004d7
2 changed files with 6 additions and 1 deletions

View File

@ -23,9 +23,11 @@ import { CircularProgress } from "@kyoo/primitives";
import { NavbarRight, NavbarTitle } from "@kyoo/ui";
import { Redirect, SplashScreen, Stack } from "expo-router";
import { useContext, useEffect } from "react";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { useTheme } from "yoshiki/native";
export default function SignGuard() {
const insets = useSafeAreaInsets();
const theme = useTheme();
// TODO: support guest accounts on mobile too.
const account = useAccount();
@ -46,6 +48,9 @@ export default function SignGuard() {
headerRight: () => <NavbarRight />,
contentStyle: {
backgroundColor: theme.background,
paddingBottom: insets.bottom,
paddingLeft: insets.left,
paddingRight: insets.right,
},
headerStyle: {
backgroundColor: theme.accent,

View File

@ -241,7 +241,7 @@ export const EpisodeLine = ({
>
<Skeleton>
{isLoading || (
<H6 aria-level={undefined} {...css("title")}>
<H6 aria-level={undefined} {...css([{ flexShrink: 1 }, "title"])}>
{name ?? t("show.episodeNoMetadata")}
</H6>
)}