mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
fix(app): remove initial workspace white flash
This commit is contained in:
@@ -7,13 +7,18 @@ import "../styles/unistyles";
|
|||||||
const webEcosystemStyles = /* css */ `
|
const webEcosystemStyles = /* css */ `
|
||||||
html {
|
html {
|
||||||
touch-action: auto;
|
touch-action: auto;
|
||||||
|
height: 100%;
|
||||||
|
background-color: #18181c;
|
||||||
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
min-height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
-webkit-user-select: text;
|
-webkit-user-select: text;
|
||||||
user-select: text;
|
user-select: text;
|
||||||
|
background-color: #18181c;
|
||||||
}
|
}
|
||||||
|
|
||||||
body * {
|
body * {
|
||||||
@@ -36,6 +41,11 @@ const webEcosystemStyles = /* css */ `
|
|||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
min-height: 100%;
|
||||||
|
background-color: #18181c;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
function WebRespectfulStyleReset() {
|
function WebRespectfulStyleReset() {
|
||||||
|
|||||||
@@ -448,7 +448,9 @@ function MissingDaemonView() {
|
|||||||
|
|
||||||
export default function RootLayout() {
|
export default function RootLayout() {
|
||||||
return (
|
return (
|
||||||
<GestureHandlerRootView style={{ flex: 1 }}>
|
<GestureHandlerRootView
|
||||||
|
style={{ flex: 1, backgroundColor: darkTheme.colors.surface0 }}
|
||||||
|
>
|
||||||
<PerfDiagnosticsProvider scope="root_layout">
|
<PerfDiagnosticsProvider scope="root_layout">
|
||||||
<PortalProvider>
|
<PortalProvider>
|
||||||
<SafeAreaProvider>
|
<SafeAreaProvider>
|
||||||
@@ -467,6 +469,9 @@ export default function RootLayout() {
|
|||||||
screenOptions={{
|
screenOptions={{
|
||||||
headerShown: false,
|
headerShown: false,
|
||||||
animation: "none",
|
animation: "none",
|
||||||
|
contentStyle: {
|
||||||
|
backgroundColor: darkTheme.colors.surface0,
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack.Screen name="index" />
|
<Stack.Screen name="index" />
|
||||||
|
|||||||
Reference in New Issue
Block a user