fix: electron sidebar blur effect

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2024-12-30 13:34:50 +08:00
parent 3ca9b5a659
commit ec7105c960
2 changed files with 10 additions and 2 deletions
+6 -2
View File
@@ -62,7 +62,8 @@
setTheme()
// Can not get window.electron so check userAgent
const isElectron = navigator.userAgent.includes("Electron")
document.documentElement.dataset.buildType = isElectron ? "electron" : "web"
const isRN = window.__RN__
document.documentElement.dataset.buildType = isRN ? "rn" : isElectron ? "electron" : "web"
</script>
<script>
const isMobile = window.innerWidth < 1024
@@ -70,11 +71,14 @@
</script>
</head>
<body>
<div id="root" class="bg-background"></div>
<div id="root"></div>
<div id="app-skeleton" class="drag-region">
<!-- Skeleton -->
<style>
[data-build-type="rn"] #root {
background-color: hsl(var(--background));
}
html,
body {
height: 100%;
+4
View File
@@ -12,6 +12,10 @@ html,
-webkit-tap-highlight-color: transparent;
}
[data-build-type="rn"] #root {
background-color: hsl(var(--background));
}
html[data-viewport="desktop"],
html[data-viewport="desktop"] body,
html[data-viewport="desktop"] #shadow-html,