@@ -143,13 +143,11 @@ const selectConversation = (id: number) => {
143
143
144
144
const isActive = computed (() => (id : number ) => activeConversation .value === id )
145
145
</script >
146
-
147
146
<template >
148
- <div class =" h-screen flex bg-gray-100" >
149
- <!-- Sidebar -->
147
+ <div class =" h-screen flex bg-gray-100 overflow-hidden" >
150
148
<div class =" w-80 bg-white border-r border-gray-200 flex flex-col" >
151
149
<!-- Sidebar Header -->
152
- <div class =" p-4 border-b border-gray-200" >
150
+ <div class =" flex-none p-4 border-b border-gray-200" >
153
151
<h2 class =" text-lg font-semibold text-gray-900" >Conversations</h2 >
154
152
<p class =" text-sm text-gray-500" >Ask any question you may have.</p >
155
153
</div >
@@ -190,7 +188,7 @@ const isActive = computed(() => (id: number) => activeConversation.value === id)
190
188
<!-- Main Content -->
191
189
<div class =" flex-1 flex flex-col" >
192
190
<!-- 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" >
194
192
<div class =" flex items-center justify-between" >
195
193
<div class =" flex items-center space-x-4" >
196
194
<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)
205
203
</div >
206
204
207
205
<!-- Chat Area -->
208
- <div class =" flex-1 overflow-y-auto p-4 bg-gray-50" style = " height : calc ( 100 vh - 136 px ); " >
206
+ <div class =" flex-1 overflow-y-auto p-4 bg-gray-50" >
209
207
<div class =" flex flex-col space-y-4 max-w-3xl mx-auto" >
210
208
<div v-for =" message in messages"
211
209
:key =" message.id"
@@ -245,7 +243,7 @@ const isActive = computed(() => (id: number) => activeConversation.value === id)
245
243
</div >
246
244
247
245
<!-- 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" >
249
247
<div class =" max-w-3xl mx-auto" >
250
248
<div class =" flex items-center space-x-4" >
251
249
<input v-model =" newMessage"
@@ -267,6 +265,7 @@ const isActive = computed(() => (id: number) => activeConversation.value === id)
267
265
<style scoped>
268
266
.h-screen {
269
267
height : 100vh ;
268
+ max-height : 100vh ;
270
269
}
271
270
272
271
.line-clamp-1 {
0 commit comments