mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Front: Prettier
This commit is contained in:
parent
ba16d7873f
commit
db3f03dc6c
@ -18,4 +18,4 @@
|
||||
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export * from './image-border-radius';
|
||||
export * from "./image-border-radius";
|
||||
|
@ -157,7 +157,10 @@ export const ItemGrid = ({
|
||||
</PosterBackground>
|
||||
<Skeleton>
|
||||
{isLoading || (
|
||||
<P numberOfLines={subtitle ? 1 : 2} {...css([{ marginY: 0, textAlign: "center" }, "title"])}>
|
||||
<P
|
||||
numberOfLines={subtitle ? 1 : 2}
|
||||
{...css([{ marginY: 0, textAlign: "center" }, "title"])}
|
||||
>
|
||||
{name}
|
||||
</P>
|
||||
)}
|
||||
|
@ -29,7 +29,7 @@ import {
|
||||
Heading,
|
||||
Icon,
|
||||
PosterBackground,
|
||||
ImageBorderRadius
|
||||
ImageBorderRadius,
|
||||
} from "@kyoo/primitives";
|
||||
import { useState } from "react";
|
||||
import { View } from "react-native";
|
||||
|
@ -127,7 +127,7 @@ export const ItemDetails = ({
|
||||
})}
|
||||
>
|
||||
<Skeleton {...css({ width: percent(100) })}>
|
||||
{isLoading || <P {...css([{ m: 0, color: 'white' }, "title"])}>{name}</P>}
|
||||
{isLoading || <P {...css([{ m: 0, color: "white" }, "title"])}>{name}</P>}
|
||||
</Skeleton>
|
||||
{(subtitle || isLoading) && (
|
||||
<Skeleton {...css({ height: rem(0.8) })}>
|
||||
@ -159,7 +159,7 @@ export const ItemDetails = ({
|
||||
minHeight: px(50),
|
||||
})}
|
||||
>
|
||||
{(
|
||||
{
|
||||
<ScrollView horizontal {...css({ alignItems: "center" })}>
|
||||
{(genres ?? Array(3))?.map((x, i) => (
|
||||
<Chip key={x ?? i} size="small" {...css({ mX: ts(0.5) })}>
|
||||
@ -167,7 +167,7 @@ export const ItemDetails = ({
|
||||
</Chip>
|
||||
))}
|
||||
</ScrollView>
|
||||
)}
|
||||
}
|
||||
{playHref !== null && (
|
||||
<IconFab
|
||||
icon={PlayArrow}
|
||||
|
Loading…
x
Reference in New Issue
Block a user