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
@@ -18,7 +18,7 @@ tauri-build = { version = "1.2.1", features = [] }
|
|||||||
log = "^0.4"
|
log = "^0.4"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
tauri = { version = "1.2.2", features = ["devtools", "http-all", "process-exit", "process-relaunch", "shell-all", "window-set-fullscreen"] }
|
tauri = { version = "1.2.2", features = ["devtools", "process-exit", "process-relaunch", "shell-all", "window-set-fullscreen"] }
|
||||||
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
|
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
|
||||||
tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
|
tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
|
||||||
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev", features = ["colored"] }
|
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev", features = ["colored"] }
|
||||||
|
|||||||
@@ -273,10 +273,6 @@ function App() {
|
|||||||
setEasterEgg(true);
|
setEasterEgg(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
appWindow.setFullscreen(false);
|
|
||||||
}, [location]);
|
|
||||||
|
|
||||||
useKonami(sixtyNine, {
|
useKonami(sixtyNine, {
|
||||||
code: [
|
code: [
|
||||||
"ArrowUp",
|
"ArrowUp",
|
||||||
|
|||||||
@@ -1,5 +1,22 @@
|
|||||||
/** @format */
|
/** @format */
|
||||||
|
|
||||||
|
.home {
|
||||||
|
&-background {
|
||||||
|
&-container {
|
||||||
|
position: fixed !important;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-backdrop {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
& > * {
|
||||||
|
all: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.hero-carousel {
|
.hero-carousel {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -213,6 +213,60 @@ const Home = () => {
|
|||||||
position: "relative",
|
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
|
<Carousel
|
||||||
className="hero-carousel"
|
className="hero-carousel"
|
||||||
autoPlay={true}
|
autoPlay={true}
|
||||||
@@ -805,7 +859,6 @@ const Home = () => {
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
<Button variant="contained" onClick={handleLogout}>
|
<Button variant="contained" onClick={handleLogout}>
|
||||||
Logout
|
Logout
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -249,7 +249,12 @@ export const VideoPlayer = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Toolbar>
|
<Toolbar>
|
||||||
<IconButton onClick={() => navigate(-1)}>
|
<IconButton
|
||||||
|
onClick={async () => {
|
||||||
|
await appWindow.setFullscreen(false);
|
||||||
|
navigate(-1);
|
||||||
|
}}
|
||||||
|
>
|
||||||
<MdiArrowLeft />
|
<MdiArrowLeft />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<Typography ml={2} variant="h6">
|
<Typography ml={2} variant="h6">
|
||||||
|
|||||||
Reference in new issue
Block a user