fix: electron sidebar blur effect
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -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%;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user