Update sidemenu and cards

This commit is contained in:
Prayag Prajapati committed 2023-08-31 14:58:17 +05:30
1 parent 7dd5fd89f8
commit e36f92e135
6 files changed
+61 -39

No files matched your search

+4 -1
View File
@@ -396,10 +396,13 @@ function App() {
opacity: 0,
}}
transition={{
duration: 0.5,
duration: 0.6,
}}
onLoad={() => setBackdropLoading(false)}
loading="eager"
style={{
transition: "opacity 6s",
}}
/>
</AnimatePresence>
</Box>
+1
View File
@@ -53,6 +53,7 @@ export const Card = ({
secondaryText,
queryKey,
userId,
availableImagesTypes,
onClick,
disableOverlay = false,
+1 -1
View File
@@ -50,7 +50,7 @@ const Carousel = ({ content, onChange }) => {
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{
duration: 0.3,
duration: 0.4,
}}
drag={"x"}
dragConstraints={{ left: 0, right: 0 }}
+1 -1
View File
@@ -127,7 +127,7 @@ const CarouselSlide = ({ item }) => {
opacity: 0,
}}
transition={{
duration: 0.15,
duration: 0.35,
}}
className="hero-carousel-detail"
>
+42 -36
View File
@@ -152,6 +152,45 @@ export const SideMenu = ({}) => {
) : (
<>
<List sx={{ border: "none" }}>
<Tooltip
title="Home"
placement="right"
followCursor
arrow
>
<ListItem
className="sidemenu-item-container"
disablePadding
sx={{
mb: 1,
}}
>
<ListItemButton
component={NavLink}
to="/home"
className="sidemenu-item"
sx={{
minHeight: 48,
justifyContent:
"center",
px: 2.5,
display: "flex",
flexDirection:
"column",
}}
>
<ListItemIcon
sx={{
minWidth: 0,
justifyContent:
"center",
}}
>
<MdiHomeVariantOutline />
</ListItemIcon>
</ListItemButton>
</ListItem>
</Tooltip>
{libraries.data.Items.map(
(library, index) => {
return (
@@ -161,6 +200,9 @@ export const SideMenu = ({}) => {
arrow
followCursor
key={index}
sx={{
mb: 1,
}}
>
<ListItem
className="sidemenu-item-container"
@@ -207,42 +249,6 @@ export const SideMenu = ({}) => {
)}
</List>
<List sx={{ marginTop: "auto" }}>
<Tooltip
title="Home"
placement="right"
followCursor
arrow
>
<ListItem
className="sidemenu-item-container"
disablePadding
>
<ListItemButton
component={NavLink}
to="/home"
className="sidemenu-item"
sx={{
minHeight: 48,
justifyContent:
"center",
px: 2.5,
display: "flex",
flexDirection:
"column",
}}
>
<ListItemIcon
sx={{
minWidth: 0,
justifyContent:
"center",
}}
>
<MdiHomeVariantOutline />
</ListItemIcon>
</ListItemButton>
</ListItem>
</Tooltip>
<Tooltip
title="Logout"
placement="right"
+12
View File
@@ -351,6 +351,12 @@ const Home = () => {
item.Type ==
BaseItemKind.Episode
? "Primary"
: Object.keys(
item.ImageTags,
).includes(
"Thumb",
)
? "Thumb"
: "Backdrop"
}
secondaryText={
@@ -383,6 +389,12 @@ const Home = () => {
)[0]
]
}
availableImagesTypes={
!!item.ImageTags &&
Object.keys(
item.ImageTags,
)
}
></Card>
);
},