diff --git a/src/components/card/card.jsx b/src/components/card/card.jsx index ce3d83f..9f8ccce 100644 --- a/src/components/card/card.jsx +++ b/src/components/card/card.jsx @@ -14,6 +14,10 @@ import LinearProgress from "@mui/material/LinearProgress"; import Chip from "@mui/material/Chip"; import ButtonGroup from "@mui/material/ButtonGroup"; import IconButton from "@mui/material/IconButton"; +import MuiLink from "@mui/material/Link"; + +import { Link } from "react-router-dom"; + import { Blurhash } from "react-blurhash"; import { green, pink } from "@mui/material/colors"; @@ -347,9 +351,10 @@ export const Card = ({ > {itemName} + { +export const ArtistAlbum = ({ user, album, boxProps }) => { const albumTracks = useQuery({ queryKey: ["artist", "album", album.Id], queryFn: async () => { @@ -58,7 +58,7 @@ export const ArtistAlbum = ({ user, album }) => { const [imgLoaded, setImgLoaded] = useState(false); return ( - + {!!album.ImageTags?.Primary && ( { )} - + {album.ProductionYear} { sx={{ borderBottom: 1, borderColor: "divider", + mb: 5, }} > {artistTabs.map((pitem, index) => { @@ -2484,7 +2485,10 @@ const ItemDetail = () => { {pitem == "Discography" && artistDiscography.data.Items.map( - (album) => { + ( + album, + mindex, + ) => { return ( { album={ album } + boxProps={{ + component: + motion.div, + initial: { + y: 30, + opacity: 0, + }, + animate: { + y: 0, + opacity: 1, + }, + transition: + { + duration: 0.35, + ease: "easeInOut", + delay: + mindex * + 0.05, + }, + }} /> ); }, diff --git a/src/routes/library/index.jsx b/src/routes/library/index.jsx index ec97fc2..d2c4b74 100644 --- a/src/routes/library/index.jsx +++ b/src/routes/library/index.jsx @@ -955,7 +955,13 @@ const LibraryView = () => { imageTags={ !!item.ImageTags.Primary } - subText={item.ProductionYear} + subText={ + item.Type.includes( + "Music", + ) + ? item.AlbumArtist + : item.ProductionYear + } iconType={item.Type} playedPercent={ !!item.UserData