2022-04-16 04:17:48 +03:00
|
|
|
<script>
|
2022-04-23 01:06:04 +03:00
|
|
|
import ChannelTopBar from "./ChannelTopBar.svelte";
|
|
|
|
import MessageInput from "./MessageInput.svelte";
|
2022-04-20 03:44:48 +03:00
|
|
|
import Messages from "./Messages.svelte";
|
2022-08-14 05:50:26 +03:00
|
|
|
import { quadInOut } from "svelte/easing";
|
|
|
|
import { maybeFly } from "../animations";
|
2023-06-25 18:10:17 +03:00
|
|
|
import { showSidebar, statusBarStore } from "../stores";
|
2022-04-17 04:08:40 +03:00
|
|
|
|
|
|
|
export let channel;
|
2022-04-16 04:17:48 +03:00
|
|
|
</script>
|
|
|
|
|
2022-04-15 02:39:13 +03:00
|
|
|
<style>
|
|
|
|
.main-container {
|
2023-05-31 22:09:36 +03:00
|
|
|
background-color: var(--background-color-2);
|
2022-04-22 23:01:44 +03:00
|
|
|
overflow: hidden;
|
2022-04-15 02:39:13 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2023-01-08 23:26:22 +02:00
|
|
|
contain: content;
|
2022-04-15 02:39:13 +03:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2023-06-25 18:10:17 +03:00
|
|
|
<div class="main-container" class:round-left="{ $showSidebar }" in:maybeFly="{{ duration: 175, x: -10, easing: quadInOut }}">
|
2023-01-08 17:48:18 +02:00
|
|
|
{#if $statusBarStore}
|
|
|
|
<div class="info-bar">
|
|
|
|
<span class="info-text">{ $statusBarStore }</span>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2022-04-23 01:06:04 +03:00
|
|
|
<ChannelTopBar channel={ channel } />
|
2022-04-20 03:14:28 +03:00
|
|
|
<Messages channelId="{ channel.id }" />
|
2022-04-23 01:06:04 +03:00
|
|
|
<MessageInput channel={ channel } />
|
2022-04-15 02:39:13 +03:00
|
|
|
</div>
|