@@ -19,7 +19,7 @@ import WriterEditor from '@/components/WriterEditor.vue'
1919import ChatArea from ' @/components/ChatArea.vue'
2020import { onMounted , onBeforeUnmount } from ' vue'
2121import { useTaskStore } from ' @/stores/task'
22-
22+ import { ScrollArea } from ' @/components/ui/scroll-area '
2323
2424const props = defineProps <{ task_id: string }>()
2525const taskStore = useTaskStore ()
@@ -37,15 +37,17 @@ onBeforeUnmount(() => {
3737 </script >
3838
3939<template >
40- <div class =" fixed inset-0 overflow-hidden " >
40+ <div class =" fixed inset-0" >
4141 <ResizablePanelGroup direction =" horizontal" class =" h-full rounded-lg border" >
4242 <ResizablePanel :default-size =" 30" class =" h-full" >
43- <ChatArea :messages =" taskStore.chatMessages" />
43+ <ScrollArea class =" h-full" >
44+ <ChatArea :messages =" taskStore.chatMessages" />
45+ </ScrollArea >
4446 </ResizablePanel >
4547 <ResizableHandle />
4648 <ResizablePanel :default-size =" 70" class =" h-full min-w-0" >
4749 <div class =" flex h-full flex-col min-w-0" >
48- <Tabs default-value =" coder" class =" w-full h-full" >
50+ <Tabs default-value =" coder" class =" w-full h-full flex flex-col " >
4951 <div class =" border-b px-4 py-1" >
5052 <TabsList class =" justify-center" >
5153 <TabsTrigger value =" coder" class =" text-sm" >
@@ -55,19 +57,20 @@ onBeforeUnmount(() => {
5557 WriterAgent
5658 </TabsTrigger >
5759 </TabsList >
60+ <!-- TODO: 其他选项 -->
5861 </div >
5962
60- <TabsContent value =" coder" class =" flex-1 p-1 min-w-0 h-full overflow-hidden " >
61- <Card class =" h-full min-w-0 " >
62- <CardContent class =" p-2 h-full min-w-0 " >
63- <CoderEditor class = " h-full min-w-0 " />
63+ <TabsContent value =" coder" class =" h-full p-1 flex-1 overflow-auto " >
64+ <Card class =" h-full m-1 " >
65+ <CardContent class =" h-full p-1 " >
66+ <CoderEditor />
6467 </CardContent >
6568 </Card >
6669 </TabsContent >
6770
68- <TabsContent value =" writer" class =" flex-1 p-1 h-full overflow-hidden " >
69- <Card class =" h-full " >
70- <CardContent class =" p-2 h-full" >
71+ <TabsContent value =" writer" class =" flex-1 p-1 min-w-0 h-full " >
72+ <Card class =" min-w-0 rounded-lg " >
73+ <CardContent class =" p-2 h-full min-w-0 overflow-hidden " >
7174 <WriterEditor :messages =" taskStore.writerMessages" />
7275 </CardContent >
7376 </Card >
0 commit comments