Fix: Fullscreen view switches back to windowed view when clicking element in library #137
This commit is contained in:
5 files changed
+78
-7
No files matched your search
@@ -273,10 +273,6 @@ function App() {
|
||||
setEasterEgg(true);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
appWindow.setFullscreen(false);
|
||||
}, [location]);
|
||||
|
||||
useKonami(sixtyNine, {
|
||||
code: [
|
||||
"ArrowUp",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
/** @format */
|
||||
|
||||
.home {
|
||||
&-background {
|
||||
&-container {
|
||||
position: fixed !important;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
&-backdrop {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
& > * {
|
||||
all: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hero-carousel {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -213,6 +213,60 @@ const Home = () => {
|
||||
position: "relative",
|
||||
}}
|
||||
>
|
||||
{/* <Carousel
|
||||
indicators={false}
|
||||
animation="fade"
|
||||
autoPlay={false}
|
||||
className="home-background-container"
|
||||
>
|
||||
{latestMedia.isSuccess &&
|
||||
latestMedia.data.length != 0 &&
|
||||
latestMedia.data.map((item, index) => {
|
||||
return (
|
||||
<ErrorBoundary
|
||||
fallback={() => {
|
||||
console.log(
|
||||
"error with home backdrop",
|
||||
item.Name,
|
||||
);
|
||||
}}
|
||||
>
|
||||
<Paper
|
||||
sx={{
|
||||
background: "red",
|
||||
width: "100vw",
|
||||
height: "100vh",
|
||||
}}
|
||||
key={index}
|
||||
className="home-backdrop-container"
|
||||
>
|
||||
{item.BackdropImageTags
|
||||
.length != 0 && (
|
||||
<Blurhash
|
||||
hash={
|
||||
item
|
||||
.ImageBlurHashes
|
||||
.Backdrop[
|
||||
Object.keys(
|
||||
item
|
||||
.ImageBlurHashes
|
||||
.Backdrop,
|
||||
)[0]
|
||||
]
|
||||
}
|
||||
width="1080"
|
||||
height="720"
|
||||
resolutionX={64}
|
||||
resolutionY={96}
|
||||
punch={1}
|
||||
className="home-backdrop"
|
||||
/>
|
||||
)}
|
||||
</Paper>
|
||||
</ErrorBoundary>
|
||||
);
|
||||
})}
|
||||
</Carousel> */}
|
||||
<Carousel
|
||||
className="hero-carousel"
|
||||
autoPlay={true}
|
||||
@@ -805,7 +859,6 @@ const Home = () => {
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
||||
<Button variant="contained" onClick={handleLogout}>
|
||||
Logout
|
||||
</Button>
|
||||
|
||||
@@ -249,7 +249,12 @@ export const VideoPlayer = () => {
|
||||
}}
|
||||
>
|
||||
<Toolbar>
|
||||
<IconButton onClick={() => navigate(-1)}>
|
||||
<IconButton
|
||||
onClick={async () => {
|
||||
await appWindow.setFullscreen(false);
|
||||
navigate(-1);
|
||||
}}
|
||||
>
|
||||
<MdiArrowLeft />
|
||||
</IconButton>
|
||||
<Typography ml={2} variant="h6">
|
||||
|
||||
Reference in new issue
Block a user