Fix episode carousel #243

This commit is contained in:
Prayag Prajapati committed 2024-01-09 14:17:16 +05:30
1 parent 922ca0ed2a
commit 13f686a472
3 files changed
+82 -53

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 664 KiB

+2 -1
View File
@@ -321,7 +321,8 @@ const ItemDetail = () => {
item.data.Id, item.data.Id,
"Backdrop", "Backdrop",
{ {
quality: 90, tag: item.data
.BackdropImageTags[0],
}, },
)} )}
className="item-hero-backdrop" className="item-hero-backdrop"
+80 -52
View File
@@ -271,7 +271,8 @@ const SeriesTitlePage = () => {
item.data.Id, item.data.Id,
"Backdrop", "Backdrop",
{ {
quality: 90, tag: item.data
.BackdropImageTags[0],
}, },
)} )}
className="item-hero-backdrop" className="item-hero-backdrop"
@@ -1074,65 +1075,92 @@ const SeriesTitlePage = () => {
<Divider /> <Divider />
<div className="item-detail-episodes-container"> <div className="item-detail-episodes-container">
{episodes.isPending {episodes.isPending
? Array.from(new Array(4)).map((a) => { ? Array.from(new Array(4)).map(
return ( (a, index) => {
<MuiCard return (
key={a} <MuiCard
sx={{ key={a}
background:
"transparent",
}}
elevation={0}
>
<CardMedia>
<Skeleton
animation="wave"
variant="rectangular"
sx={{
aspectRatio:
"1.777",
height: "auto",
m: 1,
borderRadius:
"10px",
}}
/>
</CardMedia>
<CardContent
sx={{ sx={{
padding: "0 0.5em", background:
alignItems:
"flex-start",
backgroundColor:
"transparent", "transparent",
width: "100%",
}} }}
elevation={0}
> >
<Typography variant="h6"> <CardMedia>
<Skeleton <Skeleton
variant="text" // animation="wave"
animation="wave" variant="rectangular"
sx={{
aspectRatio:
"1.777",
height: "auto",
m: 1,
borderRadius:
"10px",
animationDelay: `${
index *
0.15
}s`,
}}
/> />
</Typography> </CardMedia>
<CardContent
sx={{
padding: "0 0.5em",
alignItems:
"flex-start",
backgroundColor:
"transparent",
}}
>
<Typography variant="h6">
<Skeleton
variant="text"
sx={{
animationDelay: `${
index *
0.15
}s`,
}}
/>
</Typography>
<Typography variant="body2"> <Typography variant="body2">
<Skeleton <Skeleton
variant="text" variant="text"
animation="wave" sx={{
/> animationDelay: `${
<Skeleton index *
variant="text" 0.15
animation="wave" }s`,
/> }}
/>
<Skeleton
variant="text"
sx={{
animationDelay: `${
index *
0.15
}s`,
}}
/>
<Skeleton <Skeleton
variant="text" variant="text"
animation="wave" sx={{
/> animationDelay: `${
</Typography> index *
</CardContent> 0.15
</MuiCard> }s`,
); }}
}) />
</Typography>
</CardContent>
</MuiCard>
);
},
)
: episodes.data.Items.map((episode) => { : episodes.data.Items.map((episode) => {
return ( return (
<motion.div <motion.div