Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions dashboard/src/views/ConversationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

<!-- 对话详情对话框 -->
<v-dialog v-model="dialogView" max-width="900px" scrollable>
<v-card class="conversation-detail-card">
<v-card class="conversation-detail-card" :class="{ 'conversation-detail-card--edit': isEditingHistory }">
<v-card-title class="text-h3 pa-4 pb-0 pl-6 conversation-detail-title">
<div class="conversation-detail-heading">
<span class="text-truncate">{{ selectedConversation?.title || tm('status.noTitle') }}</span>
Expand Down Expand Up @@ -1284,8 +1284,17 @@ export default {
font-weight: 500;
}

/* 编辑模式:编辑器填满剩余高度,避免与外层滚动条叠加 */
.conversation-detail-card--edit > .v-card-text {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}

.monaco-editor-container {
height: 500px;
flex: 1;
min-height: 0;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
Expand Down Expand Up @@ -1322,6 +1331,11 @@ export default {
flex-direction: column;
}

/* 编辑模式:卡片固定高度,让 flex 链完整,Monaco 填满剩余空间 */
.v-dialog > .v-overlay__content > .conversation-detail-card--edit {
flex: 0 0 90vh;
}

.conversation-detail-title {
display: flex;
align-items: center;
Expand Down