From a5ade224838d56b5446db4c43786c79afafdb64c Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Sun, 24 Apr 2022 21:29:25 +0300 Subject: [PATCH] frontend: add "connecting" indicator --- frontend/public/global.css | 11 ++++++++ .../pages/main/ChannelTopBar.svelte | 8 +----- .../src/components/pages/main/Main.svelte | 28 ++++++++++--------- .../components/pages/main/UserTopBar.svelte | 8 +----- frontend/src/stores.js | 5 ---- 5 files changed, 28 insertions(+), 32 deletions(-) diff --git a/frontend/public/global.css b/frontend/public/global.css index 23ebc36..ade30d9 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -47,10 +47,17 @@ body { color: var(--foreground-color-1); + background-color: var(--background-color-1); font-size: 100%; font-family: "Iosevka Aile Web", sans-serif; font-weight: 400; line-height: 1.75; + + width: 100vw; + height: 100vh; + display: flex; + flex-direction: column; + overflow: hidden; } .pre--loading-screen { @@ -77,6 +84,10 @@ body { flex-shrink: 0; } +.top-bar-heading { + margin-left: var(--space-xxs); +} + .h1 { font-size: 2.488rem; } diff --git a/frontend/src/components/pages/main/ChannelTopBar.svelte b/frontend/src/components/pages/main/ChannelTopBar.svelte index 72813be..964b0c2 100644 --- a/frontend/src/components/pages/main/ChannelTopBar.svelte +++ b/frontend/src/components/pages/main/ChannelTopBar.svelte @@ -4,13 +4,7 @@ export let channel; - -
diff --git a/frontend/src/components/pages/main/Main.svelte b/frontend/src/components/pages/main/Main.svelte index 65d4bdb..34770ad 100644 --- a/frontend/src/components/pages/main/Main.svelte +++ b/frontend/src/components/pages/main/Main.svelte @@ -1,4 +1,5 @@ - - \ No newline at end of file diff --git a/frontend/src/stores.js b/frontend/src/stores.js index b222ba4..496a3c4 100644 --- a/frontend/src/stores.js +++ b/frontend/src/stores.js @@ -93,11 +93,6 @@ class UserInfoStore extends Store { this.value = user; this.updated(); }); - - gateway.subscribe(GatewayEventType.Close, () => { - this.value = null; - this.updated(); - }); } }