Add MusicAlbumTItlePage #160
This commit is contained in:
6 files changed
+433
-4
No files matched your search
@@ -25,7 +25,11 @@ const cardImageAspectRatios = {
|
||||
square: 1,
|
||||
};
|
||||
|
||||
const availableSpecialRoutes = [BaseItemKind.Series, BaseItemKind.BoxSet];
|
||||
const availableSpecialRoutes = [
|
||||
BaseItemKind.Series,
|
||||
BaseItemKind.BoxSet,
|
||||
BaseItemKind.MusicAlbum,
|
||||
];
|
||||
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
|
||||
@@ -28,7 +28,11 @@ import { useCarouselStore } from "../../utils/store/carousel";
|
||||
import PlayButton from "../buttons/playButton";
|
||||
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||
|
||||
const availableSpecialRoutes = [BaseItemKind.Series, BaseItemKind.BoxSet];
|
||||
const availableSpecialRoutes = [
|
||||
BaseItemKind.Series,
|
||||
BaseItemKind.BoxSet,
|
||||
BaseItemKind.MusicAlbum,
|
||||
];
|
||||
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
|
||||
@@ -39,6 +39,7 @@ import { MediaTypeIconCollection } from "../../utils/iconsCollection";
|
||||
* @property {bool} disablePlayButton
|
||||
* @property {bool} disableLikeButton
|
||||
* @property {bool} disableMarkAsPlayedButton
|
||||
* @property {string} albumBy
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -58,6 +59,7 @@ const Hero = ({
|
||||
disablePlayButton,
|
||||
disableLikeButton,
|
||||
disableMarkAsPlayedButton,
|
||||
albumBy,
|
||||
}) => {
|
||||
const filterMediaStreamVideo = (source) => {
|
||||
if (source.Type == MediaStreamType.Video) {
|
||||
@@ -200,6 +202,17 @@ const Hero = ({
|
||||
item.Name
|
||||
)}
|
||||
</Typography>
|
||||
{!!albumBy && (
|
||||
<Typography
|
||||
variant="h6"
|
||||
fontWeight={400}
|
||||
style={{
|
||||
opacity: 0.8,
|
||||
}}
|
||||
>
|
||||
By {albumBy}
|
||||
</Typography>
|
||||
)}
|
||||
</div>
|
||||
{!disableInfoStrip && (
|
||||
<Stack
|
||||
|
||||
Reference in new issue
Block a user