Skip to content

Commit 426ad1d

Browse files
committed
Update DraggableWindow to use responsive layout
- Use CSS flex to fill out the component's space - Add @vueuse/core functions to handle drag and event listener cleanup logic
1 parent 55a86ce commit 426ad1d

3 files changed

Lines changed: 190 additions & 346 deletions

File tree

src/components/ChatApp.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
<template v-slot:main>
88
<div class="channel d-flex flex-column">
99
<ChannelMessages class="flex-grow-1 flex-shrink-1" />
10-
<ChatInput class="flex-grow-1 flex-shrink-0" />
1110
</div>
1211
</template>
12+
<template v-slot:footer>
13+
<ChatInput class="flex-grow-1 flex-shrink-0" />
14+
</template>
1315
</DraggableWindow>
1416
</div>
1517
</template>

src/components/chat/ChatInput.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,4 @@
4040
}
4141
</script>
4242

43-
<style scoped>
44-
.chat-input-container {
45-
min-height: 5em;
46-
}
47-
</style>
43+
<style scoped></style>

0 commit comments

Comments
 (0)