Update sidemenu and cards
This commit is contained in:
6 files changed
+61
-39
No files matched your search
+4
-1
@@ -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>
|
||||
|
||||
@@ -53,6 +53,7 @@ export const Card = ({
|
||||
secondaryText,
|
||||
queryKey,
|
||||
userId,
|
||||
availableImagesTypes,
|
||||
|
||||
onClick,
|
||||
disableOverlay = false,
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -127,7 +127,7 @@ const CarouselSlide = ({ item }) => {
|
||||
opacity: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 0.15,
|
||||
duration: 0.35,
|
||||
}}
|
||||
className="hero-carousel-detail"
|
||||
>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user