Compare commits

..

No commits in common. "f67909c8e716ecf1934e918cb07c0687507a791e" and "24fb9feead2af236e4629822e13023608ff8f592" have entirely different histories.

3 changed files with 7 additions and 3 deletions

View file

@ -16,9 +16,13 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.hidden {
display: none;
}
</style> </style>
<div class="main-container"> <div class="main-container" class:hidden={ !$showChannelView }>
<ChannelTopBar channel={ channel } /> <ChannelTopBar channel={ channel } />
<Messages channelId="{ channel.id }" /> <Messages channelId="{ channel.id }" />
<MessageInput channel={ channel } /> <MessageInput channel={ channel } />

View file

@ -29,7 +29,7 @@
{#if $showSidebar} {#if $showSidebar}
<Sidebar /> <Sidebar />
{/if} {/if}
{#if !($smallViewport && $showSidebar) && $showChannelView} {#if !($smallViewport && $showSidebar)}
<ChannelView channel={$selectedChannel} /> <ChannelView channel={$selectedChannel} />
{/if} {/if}
</div> </div>

View file

@ -114,7 +114,7 @@ export default {
this.reconnectDelay *= 2; this.reconnectDelay *= 2;
} }
this.reconnectTimeout = setTimeout(() => { this.reconnectTimeout = setTimeout(() => {
this.init(token); this.init();
}, this.reconnectDelay); }, this.reconnectDelay);
} }