diff --git a/src/routes/home/home.module.scss b/src/routes/home/home.module.scss
index fb7df2e..cf7c3b8 100644
--- a/src/routes/home/home.module.scss
+++ b/src/routes/home/home.module.scss
@@ -84,7 +84,7 @@
-webkit-line-clamp: 2;
margin-bottom: 0.5em;
&-logo {
- max-width: 6em;
+ max-width: 10em;
height: 2em;
object-fit: contain;
object-position: bottom;
@@ -96,7 +96,7 @@
display: flex;
height: 70vh;
width: 70%;
- padding: 0 2em 2em 2em;
+ padding: 2em;
flex-direction: column;
justify-content: center;
align-items: flex-start;
diff --git a/src/routes/home/index.jsx b/src/routes/home/index.jsx
index 1338a92..49ec370 100644
--- a/src/routes/home/index.jsx
+++ b/src/routes/home/index.jsx
@@ -47,6 +47,7 @@ import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
import { useNavigate } from "react-router-dom";
import { endsAt, getRuntime } from "../../utils/date/time";
+import { BaseItemKind, ItemFields } from "@jellyfin/sdk/lib/generated-client";
const Home = () => {
const authUser = useQuery({
@@ -94,7 +95,7 @@ const Home = () => {
const media = await getUserLibraryApi(window.api).getLatestMedia(
{
userId: user.data.Id,
- fields: "Overview",
+ fields: [ItemFields.Overview, ItemFields.ParentId],
enableUserData: true,
},
);
@@ -252,8 +253,42 @@ const Home = () => {
key={index}
>
- {item.ImageBlurHashes
- .Backdrop ? (
+ {item.Type ==
+ BaseItemKind.MusicAlbum ? (
+ item
+ .ParentBackdropImageTags
+ .length != 0 && (
+ <>
+
+
+ >
+ )
+ ) : item.ImageBlurHashes
+ .Backdrop ? (
<>
{
md={
1
}
+ component={
+ motion.div
+ }
+ initial={{
+ y: 30,
+ opacity: 0,
+ }}
+ animate={{
+ y: 0,
+ opacity: 1,
+ }}
+ transition={{
+ duration: 0.35,
+ ease: "easeInOut",
+ delay:
+ mindex *
+ 0.05,
+ }}
>
{
md={
1
}
+ component={
+ motion.div
+ }
+ initial={{
+ y: 30,
+ opacity: 0,
+ }}
+ animate={{
+ y: 0,
+ opacity: 1,
+ }}
+ transition={{
+ duration: 0.35,
+ ease: "easeInOut",
+ delay:
+ mindex *
+ 0.05,
+ }}
>
{
md={
1
}
+ component={
+ motion.div
+ }
+ initial={{
+ y: 30,
+ opacity: 0,
+ }}
+ animate={{
+ y: 0,
+ opacity: 1,
+ }}
+ transition={{
+ duration: 0.35,
+ ease: "easeInOut",
+ delay:
+ mindex *
+ 0.05,
+ }}
>
{
md={
1
}
+ component={
+ motion.div
+ }
+ initial={{
+ y: 30,
+ opacity: 0,
+ }}
+ animate={{
+ y: 0,
+ opacity: 1,
+ }}
+ transition={{
+ duration: 0.35,
+ ease: "easeInOut",
+ delay:
+ mindex *
+ 0.05,
+ }}
>
{
md={
1
}
+ component={
+ motion.div
+ }
+ initial={{
+ y: 30,
+ opacity: 0,
+ }}
+ animate={{
+ y: 0,
+ opacity: 1,
+ }}
+ transition={{
+ duration: 0.35,
+ ease: "easeInOut",
+ delay:
+ mindex *
+ 0.05,
+ }}
>
{
(mitem, mindex) => {
return (
{
opacity: 1,
}}
transition={{
- duration: 0.45,
+ duration: 0.35,
ease: "easeInOut",
delay:
mindex *
diff --git a/src/routes/library/index.jsx b/src/routes/library/index.jsx
index de02187..ec97fc2 100644
--- a/src/routes/library/index.jsx
+++ b/src/routes/library/index.jsx
@@ -930,11 +930,11 @@ const LibraryView = () => {
{items.data.Items.map((item, index) => {
return (
{
: ""
}
currentUser={user.data}
+ favourite={
+ item.UserData.IsFavorite
+ }
>
);