Fix episode carousel #243
This commit is contained in:
3 files changed
+38
-9
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 664 KiB |
@@ -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"
|
||||||
|
|||||||
@@ -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,19 +1075,21 @@ 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(
|
||||||
|
(a, index) => {
|
||||||
return (
|
return (
|
||||||
<MuiCard
|
<MuiCard
|
||||||
key={a}
|
key={a}
|
||||||
sx={{
|
sx={{
|
||||||
background:
|
background:
|
||||||
"transparent",
|
"transparent",
|
||||||
|
width: "100%",
|
||||||
}}
|
}}
|
||||||
elevation={0}
|
elevation={0}
|
||||||
>
|
>
|
||||||
<CardMedia>
|
<CardMedia>
|
||||||
<Skeleton
|
<Skeleton
|
||||||
animation="wave"
|
// animation="wave"
|
||||||
variant="rectangular"
|
variant="rectangular"
|
||||||
sx={{
|
sx={{
|
||||||
aspectRatio:
|
aspectRatio:
|
||||||
@@ -1095,6 +1098,10 @@ const SeriesTitlePage = () => {
|
|||||||
m: 1,
|
m: 1,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
"10px",
|
"10px",
|
||||||
|
animationDelay: `${
|
||||||
|
index *
|
||||||
|
0.15
|
||||||
|
}s`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</CardMedia>
|
</CardMedia>
|
||||||
@@ -1110,29 +1117,50 @@ const SeriesTitlePage = () => {
|
|||||||
<Typography variant="h6">
|
<Typography variant="h6">
|
||||||
<Skeleton
|
<Skeleton
|
||||||
variant="text"
|
variant="text"
|
||||||
animation="wave"
|
sx={{
|
||||||
|
animationDelay: `${
|
||||||
|
index *
|
||||||
|
0.15
|
||||||
|
}s`,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography variant="body2">
|
<Typography variant="body2">
|
||||||
<Skeleton
|
<Skeleton
|
||||||
variant="text"
|
variant="text"
|
||||||
animation="wave"
|
sx={{
|
||||||
|
animationDelay: `${
|
||||||
|
index *
|
||||||
|
0.15
|
||||||
|
}s`,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<Skeleton
|
<Skeleton
|
||||||
variant="text"
|
variant="text"
|
||||||
animation="wave"
|
sx={{
|
||||||
|
animationDelay: `${
|
||||||
|
index *
|
||||||
|
0.15
|
||||||
|
}s`,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Skeleton
|
<Skeleton
|
||||||
variant="text"
|
variant="text"
|
||||||
animation="wave"
|
sx={{
|
||||||
|
animationDelay: `${
|
||||||
|
index *
|
||||||
|
0.15
|
||||||
|
}s`,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</MuiCard>
|
</MuiCard>
|
||||||
);
|
);
|
||||||
})
|
},
|
||||||
|
)
|
||||||
: episodes.data.Items.map((episode) => {
|
: episodes.data.Items.map((episode) => {
|
||||||
return (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
|
|||||||
Reference in new issue
Block a user