move "connecting..." indicator to the sidebar to prevent layout shifts
This commit is contained in:
parent
9540bc6178
commit
f87077d381
2 changed files with 8 additions and 9 deletions
|
@ -44,13 +44,6 @@
|
|||
|
||||
<OverlayProvider />
|
||||
|
||||
{#if !$gatewayStatus.ready}
|
||||
<div class="top-bar darker">
|
||||
<CloudIcon />
|
||||
<span class="h5 top-bar-heading">connecting...</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="flex-container">
|
||||
{#if $showSidebar || $selectedChannel.id === -1}
|
||||
<Sidebar />
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<script>
|
||||
import { HashIcon, PlusIcon, MoreVerticalIcon, SettingsIcon } from "svelte-feather-icons";
|
||||
import { HashIcon, PlusIcon, MoreVerticalIcon, SettingsIcon, CloudIcon } from "svelte-feather-icons";
|
||||
import { quadInOut } from "svelte/easing";
|
||||
import { maybeFly } from "../animations";
|
||||
import { channels, overlayStore, selectedChannel, showChannelView, showSidebar, smallViewport, userInfoStore } from "../stores";
|
||||
import { channels, gatewayStatus, overlayStore, selectedChannel, showChannelView, showSidebar, smallViewport, userInfoStore } from "../stores";
|
||||
import UserTopBar from "./UserTopBar.svelte";
|
||||
|
||||
let pendingSelectChannel = null;
|
||||
|
@ -64,6 +64,12 @@
|
|||
<span>Settings</span>
|
||||
</button>
|
||||
</div>
|
||||
{#if !$gatewayStatus.ready}
|
||||
<div class="top-bar darker">
|
||||
<CloudIcon />
|
||||
<span class="h5 top-bar-heading">connecting...</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Reference in a new issue