From fb27c3071fdfb82203607517b98cf233c791f1ee Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Wed, 13 Sep 2023 14:34:07 +0530 Subject: [PATCH] Update --- src/components/card/actorCards.jsx | 6 +- src/components/card/card.jsx | 6 +- src/components/card/episodeCard.jsx | 5 +- src/components/layouts/item/hero.jsx | 2 + src/components/skeleton/seasonSelector.jsx | 112 +++++++++++++++++++++ src/routes/series/index.jsx | 5 +- 6 files changed, 128 insertions(+), 8 deletions(-) create mode 100644 src/components/skeleton/seasonSelector.jsx diff --git a/src/components/card/actorCards.jsx b/src/components/card/actorCards.jsx index ff4a2de..f414b81 100644 --- a/src/components/card/actorCards.jsx +++ b/src/components/card/actorCards.jsx @@ -99,9 +99,9 @@ export const ActorCard = ({ !!seriesId ? item.SeriesId : item.Id, "Primary", { - quality: 90, - fillHeight: 512, - fillWidth: 512, + quality: 80, + fillHeight: 448, + fillWidth: 448, }, )} style={{ diff --git a/src/components/card/card.jsx b/src/components/card/card.jsx index c62c4f3..7020263 100644 --- a/src/components/card/card.jsx +++ b/src/components/card/card.jsx @@ -151,9 +151,9 @@ export const Card = ({ : item.Id, imageType, { - quality: 90, - fillHeight: 512, - fillWidth: 512, + quality: 95, + fillHeight: 640, + fillWidth: 640, }, ) } diff --git a/src/components/card/episodeCard.jsx b/src/components/card/episodeCard.jsx index 8e7d834..a154d11 100644 --- a/src/components/card/episodeCard.jsx +++ b/src/components/card/episodeCard.jsx @@ -180,7 +180,10 @@ export const EpisodeCard = ({ variant="subtitle1" fontWeight={500} textAlign="start" - style={{ opacity: 0.9 }} + noWrap + style={{ + opacity: 0.9, + }} > {cardTitle} diff --git a/src/components/layouts/item/hero.jsx b/src/components/layouts/item/hero.jsx index 38d47d6..13b9ae8 100644 --- a/src/components/layouts/item/hero.jsx +++ b/src/components/layouts/item/hero.jsx @@ -196,6 +196,8 @@ const Hero = ({ } className="hero-carousel-info" mt={1} + justifyItems="flex-start" + alignItems="center" > { + return ( + +
+ + + + +
+ +
+ {Array.from(new Array(4)).map((a, index) => { + return ( + + + + + + + + + + + + + + + + + + + + ); + })} +
+ ); +}; diff --git a/src/routes/series/index.jsx b/src/routes/series/index.jsx index 159a230..1d11e9e 100644 --- a/src/routes/series/index.jsx +++ b/src/routes/series/index.jsx @@ -71,6 +71,7 @@ import { usePlaybackStore } from "../../utils/store/playback"; import { Tooltip } from "@mui/material"; import { useBackdropStore } from "../../utils/store/backdrop"; import { ActorCard } from "../../components/card/actorCards"; +import { SeasonSelectorSkeleton } from "../../components/skeleton/seasonSelector"; function TabPanel(props) { const { children, value, index, ...other } = props; @@ -350,7 +351,9 @@ const SeriesTitlePage = () => { )} - {seasons.isSuccess && ( + {seasons.isLoading ? ( + + ) : (