Fix: Fullscreen view switches back to windowed view when clicking element in library #137

This commit is contained in:
Prayag Prajapati committed 2023-08-11 22:12:07 +05:30
1 parent 8f8d3f2ec3
commit 7a7e5b3751
5 files changed
+78 -7

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ tauri-build = { version = "1.2.1", features = [] }
log = "^0.4"
serde_json = "1.0"
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-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"] }
-4
View File
@@ -273,10 +273,6 @@ function App() {
setEasterEgg(true);
};
useEffect(() => {
appWindow.setFullscreen(false);
}, [location]);
useKonami(sixtyNine, {
code: [
"ArrowUp",
+17
View File
@@ -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;
+54 -1
View File
@@ -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>
+6 -1
View File
@@ -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">