From 6aa4e91c0a8f342332e0529c496d089ffc5f33d9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 25 Dec 2024 14:20:04 +0200 Subject: [PATCH] web/css: fix background colors again --- web/src/App.tsx | 8 ++++---- web/src/index.css | 14 ++++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index e6d986f..816db3c 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -70,18 +70,18 @@ function App() { : null if (connState?.error && !afterConnectError) { - return errorOverlay + return
{errorOverlay}
} else if ((!connState?.connected && !afterConnectError) || !clientState) { const msg = connState?.connected ? "Waiting for client state..." : "Connecting to backend..." - return
+ return
{msg}
} else if (!clientState.is_logged_in) { - return + return
} else if (!clientState.is_verified) { - return + return
} else { return diff --git a/web/src/index.css b/web/src/index.css index 48a3a6e..6517adc 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -158,7 +158,7 @@ body { font-family: var(--font-stack); margin: 0; padding: 0; - background-color: var(--login-background-color); + background-color: var(--background-color); line-height: 1.5; font-size: 16px; touch-action: none; @@ -248,9 +248,15 @@ div.connection-error-wrapper { } } -div.pre-connect { - margin-top: 2rem; - text-align: center; +div.pre-main { + position: fixed; + inset: 0; + background-color: var(--login-background-color); + + &.waiting-to-connect { + padding-top: 2rem; + text-align: center; + } } a {