Skip to content

Commit 665ffa1

Browse files
committed
chore: wip
chore: wip
1 parent 71c65b2 commit 665ffa1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

resources/views/dashboard/buddy/index.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,11 @@ const selectConversation = (id: number) => {
143143
144144
const isActive = computed(() => (id: number) => activeConversation.value === id)
145145
</script>
146-
147146
<template>
148-
<div class="h-screen flex bg-gray-100">
149-
<!-- Sidebar -->
147+
<div class="h-screen flex bg-gray-100 overflow-hidden">
150148
<div class="w-80 bg-white border-r border-gray-200 flex flex-col">
151149
<!-- Sidebar Header -->
152-
<div class="p-4 border-b border-gray-200">
150+
<div class="flex-none p-4 border-b border-gray-200">
153151
<h2 class="text-lg font-semibold text-gray-900">Conversations</h2>
154152
<p class="text-sm text-gray-500">Ask any question you may have.</p>
155153
</div>
@@ -190,7 +188,7 @@ const isActive = computed(() => (id: number) => activeConversation.value === id)
190188
<!-- Main Content -->
191189
<div class="flex-1 flex flex-col">
192190
<!-- Chat Header -->
193-
<div class="bg-white border-b border-gray-200 p-4">
191+
<div class="flex-none bg-white border-b border-gray-200 p-4">
194192
<div class="flex items-center justify-between">
195193
<div class="flex items-center space-x-4">
196194
<div class="h-10 w-10 rounded-full bg-gradient-to-r from-blue-400 to-blue-600 flex items-center justify-center">
@@ -205,7 +203,7 @@ const isActive = computed(() => (id: number) => activeConversation.value === id)
205203
</div>
206204

207205
<!-- Chat Area -->
208-
<div class="flex-1 overflow-y-auto p-4 bg-gray-50" style="height: calc(100vh - 136px);">
206+
<div class="flex-1 overflow-y-auto p-4 bg-gray-50">
209207
<div class="flex flex-col space-y-4 max-w-3xl mx-auto">
210208
<div v-for="message in messages"
211209
:key="message.id"
@@ -245,7 +243,7 @@ const isActive = computed(() => (id: number) => activeConversation.value === id)
245243
</div>
246244

247245
<!-- Message Input -->
248-
<div class="bg-white border-t border-gray-200 p-4">
246+
<div class="flex-none bg-white border-t border-gray-200 p-4">
249247
<div class="max-w-3xl mx-auto">
250248
<div class="flex items-center space-x-4">
251249
<input v-model="newMessage"
@@ -267,6 +265,7 @@ const isActive = computed(() => (id: number) => activeConversation.value === id)
267265
<style scoped>
268266
.h-screen {
269267
height: 100vh;
268+
max-height: 100vh;
270269
}
271270
272271
.line-clamp-1 {

0 commit comments

Comments
 (0)