Update libView and titlePage #26
This commit is contained in:
2 files changed
+47
-2
No files matched your search
@@ -30,7 +30,7 @@ import { AvatarImage } from "../../components/avatar/avatar";
|
||||
|
||||
import { Blurhash } from "react-blurhash";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import { useParams, useNavigate } from "react-router-dom";
|
||||
import { useParams, useNavigate, Link as RouterLink } from "react-router-dom";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
@@ -693,6 +693,42 @@ const ItemDetail = () => {
|
||||
>
|
||||
{item.data.OriginalTitle}
|
||||
</Typography>
|
||||
{!!item.data.AlbumArtists && (
|
||||
<Stack
|
||||
direction="row"
|
||||
gap={0.5}
|
||||
divider={
|
||||
<Typography variant="h6">
|
||||
,
|
||||
</Typography>
|
||||
}
|
||||
>
|
||||
{item.data.AlbumArtists.map(
|
||||
(
|
||||
artist,
|
||||
aindex,
|
||||
) => {
|
||||
return (
|
||||
<Link
|
||||
component={
|
||||
RouterLink
|
||||
}
|
||||
variant="h6"
|
||||
sx={{
|
||||
opacity: 0.7,
|
||||
}}
|
||||
color="inherit"
|
||||
to={`/item/${artist.Id}`}
|
||||
>
|
||||
{
|
||||
artist.Name
|
||||
}
|
||||
</Link>
|
||||
);
|
||||
},
|
||||
)}
|
||||
</Stack>
|
||||
)}
|
||||
</Box>
|
||||
<Stack
|
||||
direction="row"
|
||||
|
||||
@@ -441,6 +441,14 @@ const LibraryView = () => {
|
||||
items.refetch();
|
||||
};
|
||||
|
||||
const disablePaginationViews = [
|
||||
"MusicArtist",
|
||||
"Person",
|
||||
"Genre",
|
||||
"MusicGenre",
|
||||
"Studio",
|
||||
];
|
||||
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@@ -1098,8 +1106,9 @@ const LibraryView = () => {
|
||||
)}
|
||||
|
||||
{!items.isFetching &&
|
||||
!disablePaginationViews.includes(currentViewType) &&
|
||||
items.isSuccess &&
|
||||
items.data.TotalRecordCount > 75 && (
|
||||
items.data.TotalRecordCount > maxDisplayItems && (
|
||||
<Stack
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
|
||||
Reference in new issue
Block a user