Complete Discography #64

This commit is contained in:
prayag17 committed 2023-05-02 20:47:00 +05:30
1 parent 16dcff113d
commit bd5313ebf3
4 files changed
+44 -6

No files matched your search

+6 -1
View File
@@ -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}
</Typography>
<Typography
gutterBottom
variant="subtitle2"
variant="subtitle1"
component="div"
textAlign="left"
width="fit-content"
@@ -27,7 +27,7 @@ import { MdiAlbum } from "../../icons/mdiAlbum";
import "./albumArtist.scss";
export const ArtistAlbum = ({ user, album }) => {
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 (
<Box>
<Box sx={{ mb: 6 }} {...boxProps}>
<Stack direction="row" gap={3} mb={3}>
{!!album.ImageTags?.Primary && (
<Box
@@ -108,7 +108,10 @@ export const ArtistAlbum = ({ user, album }) => {
</Box>
)}
<Stack>
<Typography variant="h5" sx={{ opacity: `0.7` }}>
<Typography
variant="h5"
sx={{ opacity: `0.7`, mb: 1 }}
>
{album.ProductionYear}
</Typography>
<MuiLink
+25 -1
View File
@@ -2460,6 +2460,7 @@ const ItemDetail = () => {
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 (
<ArtistAlbum
key={
@@ -2496,6 +2500,26 @@ const ItemDetail = () => {
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,
},
}}
/>
);
},
+7 -1
View File
@@ -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