Skip to content

Commit d4ff8ca

Browse files
committed
fix bug
1 parent d6fb575 commit d4ff8ca

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

frontend/src/components/CoderEditor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ const handleCollapse = () => {
2424
</script>
2525
<template>
2626
<SidebarProvider :collapsed="isCollapsed">
27-
<div class="flex h-screen">
27+
<div class="flex h-full min-h-0 w-full min-w-0">
2828
<div :class="[
2929
'transition-all duration-300 overflow-hidden',
30-
isCollapsed ? 'w-0' : 'w-64'
30+
isCollapsed ? 'w-0' : 'w-44'
3131
]">
32-
<Files class="w-55 border-r h-full" />
32+
<Files class="w-44 border-r h-full" />
3333
</div>
3434
<SidebarInset class="flex-1 flex flex-col min-h-0 min-w-0">
3535
<header class="flex h-10 shrink-0 items-center gap-2 border-b px-4">

frontend/src/components/NotebookArea.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,17 @@ onMounted(async () => {
9494

9595

9696
<template>
97-
<div class="flex-1 bg-gray-50">
97+
<div class="flex-1 px-1 pt-1 bg-gray-50">
9898
<!-- 遍历所有单元格 -->
99-
<div v-for="(cell, index) in cells" :key="index" class="transform transition-all duration-200 hover:shadow-lg">
99+
<div v-for="(cell, index) in cells" :key="index" class="transform transition-all duration-200 hover:shadow-lg py-1">
100100
<div :class="[
101101
'bg-white rounded-lg shadow-sm overflow-hidden',
102102
'border border-gray-200 hover:border-blue-300',
103103
cell.type === 'code' ? 'code-cell' : 'markdown-cell'
104104
]">
105105
<!-- 单元格头部 -->
106106
<div
107-
class="px-4 py-2 flex items-center justify-between bg-gradient-to-r from-gray-50 to-white border-b border-gray-200">
107+
class="px-3 py-1 flex items-center justify-between bg-gradient-to-r from-gray-50 to-white border-b border-gray-200">
108108
<div class="flex items-center space-x-2">
109109
<span :class="[
110110
'px-2 py-1 rounded text-xs font-medium',

frontend/src/pages/task/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const writerMessages = computed(() =>
104104
</TabsList>
105105
</div>
106106

107-
<TabsContent value="coder" class="flex-1 p-1 min-w-0">
107+
<TabsContent value="coder" class="flex-1 p-1 min-w-0 h-full">
108108
<Card class="h-full min-w-0">
109109
<CardContent class="p-2 h-full min-w-0">
110110
<CoderEditor class="h-full min-w-0" />

0 commit comments

Comments
 (0)