Fix Carousel and Server connection err dialog
This commit is contained in:
4 files changed
+41
-30
No files matched your search
+28
-20
@@ -254,7 +254,9 @@ const Home = () => {
|
||||
>
|
||||
<div className="hero-carousel-background-container">
|
||||
{item.Type ==
|
||||
BaseItemKind.MusicAlbum ? (
|
||||
BaseItemKind.MusicAlbum ||
|
||||
item.Type ==
|
||||
BaseItemKind.Episode ? (
|
||||
item
|
||||
.ParentBackdropImageTags
|
||||
.length != 0 && (
|
||||
@@ -291,26 +293,32 @@ const Home = () => {
|
||||
) : item.ImageBlurHashes
|
||||
.Backdrop ? (
|
||||
<>
|
||||
<Blurhash
|
||||
hash={
|
||||
item
|
||||
.ImageBlurHashes
|
||||
.Backdrop[
|
||||
{item
|
||||
.BackdropImageTags
|
||||
.length !=
|
||||
0 && (
|
||||
<Blurhash
|
||||
hash={
|
||||
item
|
||||
.BackdropImageTags[0]
|
||||
]
|
||||
}
|
||||
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
|
||||
width="1080"
|
||||
height="720"
|
||||
resolutionX={
|
||||
64
|
||||
}
|
||||
resolutionY={
|
||||
96
|
||||
}
|
||||
className="hero-carousel-background-blurhash"
|
||||
/>
|
||||
.ImageBlurHashes
|
||||
.Backdrop[
|
||||
item
|
||||
.BackdropImageTags[0]
|
||||
]
|
||||
}
|
||||
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
|
||||
width="1080"
|
||||
height="720"
|
||||
resolutionX={
|
||||
64
|
||||
}
|
||||
resolutionY={
|
||||
96
|
||||
}
|
||||
className="hero-carousel-background-blurhash"
|
||||
punch={1}
|
||||
/>
|
||||
)}
|
||||
<div
|
||||
className="hero-carousel-background-image"
|
||||
style={{
|
||||
|
||||
@@ -405,9 +405,9 @@ const ItemDetail = () => {
|
||||
const [audioTracks, setAudioTracks] = useState([]);
|
||||
const [subtitleTracks, setSubtitleTracks] = useState([]);
|
||||
|
||||
const [currentVideoTrack, setCurrentVideoTrack] = useState();
|
||||
const [currentAudioTrack, setCurrentAudioTrack] = useState();
|
||||
const [currentSubTrack, setCurrentSubTrack] = useState();
|
||||
const [currentVideoTrack, setCurrentVideoTrack] = useState("");
|
||||
const [currentAudioTrack, setCurrentAudioTrack] = useState("");
|
||||
const [currentSubTrack, setCurrentSubTrack] = useState("");
|
||||
|
||||
useEffect(() => {
|
||||
if (item.isSuccess && !!item.data.MediaStreams) {
|
||||
|
||||
@@ -469,8 +469,8 @@ const LibraryView = () => {
|
||||
position="fixed"
|
||||
elevation={trigger ? 1 : 0}
|
||||
sx={{
|
||||
width: `calc(100vw - ${theme.spacing(7)})`,
|
||||
mt: 8,
|
||||
width: `calc(100vw - ${theme.spacing(7)} - 10px)`,
|
||||
top: `${8 * 8}px !important`,
|
||||
backdropFilter: trigger ? `blur(30px)` : "none",
|
||||
background: "transparent",
|
||||
backgroundColor: trigger
|
||||
@@ -987,9 +987,8 @@ const LibraryView = () => {
|
||||
: false
|
||||
}
|
||||
watchedCount={
|
||||
!!item.UserData &&
|
||||
item.UserData
|
||||
.UnplayedItemCount
|
||||
?.UnplayedItemCount
|
||||
}
|
||||
blurhash={
|
||||
item.ImageBlurHashes ==
|
||||
@@ -1012,7 +1011,7 @@ const LibraryView = () => {
|
||||
}
|
||||
currentUser={user.data}
|
||||
favourite={
|
||||
item.UserData.IsFavorite
|
||||
item.UserData?.IsFavorite
|
||||
}
|
||||
></Card>
|
||||
</Grid2>
|
||||
@@ -1026,7 +1025,7 @@ const LibraryView = () => {
|
||||
{items.data.Items.map((item, index) => {
|
||||
return (
|
||||
<TableRow
|
||||
component={motion.div}
|
||||
component={motion.row}
|
||||
key={index}
|
||||
sx={{
|
||||
"& td,& th": {
|
||||
|
||||
Reference in new issue
Block a user