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