frontend: fix message view not scrolling to bottom when re-selecting channel
This commit is contained in:
parent
25b1ba653c
commit
f67909c8e7
2 changed files with 2 additions and 6 deletions
|
@ -16,13 +16,9 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="main-container" class:hidden={ !$showChannelView }>
|
<div class="main-container">
|
||||||
<ChannelTopBar channel={ channel } />
|
<ChannelTopBar channel={ channel } />
|
||||||
<Messages channelId="{ channel.id }" />
|
<Messages channelId="{ channel.id }" />
|
||||||
<MessageInput channel={ channel } />
|
<MessageInput channel={ channel } />
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
{#if $showSidebar}
|
{#if $showSidebar}
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
{/if}
|
{/if}
|
||||||
{#if !($smallViewport && $showSidebar)}
|
{#if !($smallViewport && $showSidebar) && $showChannelView}
|
||||||
<ChannelView channel={$selectedChannel} />
|
<ChannelView channel={$selectedChannel} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue