Make sidebars take up full space
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m2s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m2s
This commit is contained in:
@@ -80,8 +80,9 @@ onUnmounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col">
|
||||
<div class="flex-1 flex-col flex">
|
||||
<Header>Chat</Header>
|
||||
<div class="flex-col flex flex-1">
|
||||
<div
|
||||
ref="messagesContainer"
|
||||
class="flex flex-col flex-1 overflow-y-auto p-2"
|
||||
@@ -89,7 +90,9 @@ onUnmounted(() => {
|
||||
<p v-for="message in messages" :key="message.id">
|
||||
<span class="text-tertiary">{{ message.authorId }}:</span>
|
||||
<template
|
||||
v-for="(part, i) in parseMessageParts(message.text || '')"
|
||||
v-for="(part, i) in parseMessageParts(
|
||||
message.text || '',
|
||||
)"
|
||||
:key="i"
|
||||
>
|
||||
<a
|
||||
@@ -128,6 +131,7 @@ onUnmounted(() => {
|
||||
</template>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<input v-model="messageInput" @keyup.enter="sendMessage" />
|
||||
<input
|
||||
ref="fileInput"
|
||||
@@ -135,13 +139,18 @@ onUnmounted(() => {
|
||||
class="hidden"
|
||||
@change="onFileSelected"
|
||||
/>
|
||||
<div class="flex justify-between">
|
||||
<Button @click="sendMessage">Send</Button>
|
||||
<Button v-if="authStore.user.admin" @click="fileInput.click()"
|
||||
<div class="flex gap-2">
|
||||
<Button class="flex-1" @click="sendMessage">Send</Button>
|
||||
<Button
|
||||
v-if="authStore.user.admin"
|
||||
class="flex-1"
|
||||
@click="fileInput.click()"
|
||||
>Attach</Button
|
||||
>
|
||||
<div class="flex gap-2">
|
||||
<Button @click="scrollToBottom">Bottom</Button>
|
||||
<Button class="flex-1" @click="scrollToBottom"
|
||||
>Bottom</Button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,8 +28,10 @@ import Consumption from "./Consumption.vue";
|
||||
<div
|
||||
class="sidebar flex-1 flex flex-col m-10 w-60 gap-2 place-content-between"
|
||||
>
|
||||
<div class="border-children background-children">
|
||||
<Chat class="h-200" />
|
||||
<div
|
||||
class="flex flex-col background-children border-children flex-1 gap-2"
|
||||
>
|
||||
<Chat class="flex-1" />
|
||||
</div>
|
||||
<div>
|
||||
<Miku class="border-tertiary border bg-bg_secondary" />
|
||||
@@ -52,7 +54,7 @@ import Consumption from "./Consumption.vue";
|
||||
<Gym2 class="gym" />
|
||||
</div>
|
||||
<div
|
||||
class="sidebar place-content-between flex-1 flex flex-col m-10 w-60"
|
||||
class="sidebar place-content-between flex-1 flex flex-col m-10 w-60 gap-2"
|
||||
>
|
||||
<div
|
||||
class="flex flex-col background-children border-children flex-1 gap-2"
|
||||
@@ -60,7 +62,7 @@ import Consumption from "./Consumption.vue";
|
||||
<Time />
|
||||
<Timer />
|
||||
<Radio />
|
||||
<CommitHistory class="h-100 overflow-y-scroll" />
|
||||
<CommitHistory class="flex-1 overflow-y-scroll" />
|
||||
|
||||
<!-- <Elle class="flex-1" /> -->
|
||||
<!-- <MusicPlayer /> -->
|
||||
|
||||
Reference in New Issue
Block a user