Skip to content

Commit e820082

Browse files
committed
style(app): 移除ConversationManager容器的最小高度限制
移除 minHeight: '150px' 约束,允许组件高度更灵活地适应内容, 提升高级模式下的布局自适应性。 影响范围: - packages/web/src/App.vue - packages/extension/src/App.vue
1 parent e51825c commit e820082

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/extension/src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
</NCard>
168168

169169
<!-- 组件 B: ConversationManager (使用v-show替代v-if避免组件频繁销毁重建) -->
170-
<NCard v-show="advancedModeEnabled" :style="{ flexShrink: 0, minHeight: '150px', overflow: 'auto' }" content-style="padding: 0;">
170+
<NCard v-show="advancedModeEnabled" :style="{ flexShrink: 0, overflow: 'auto' }" content-style="padding: 0;">
171171
<ConversationManager
172172
v-model:messages="optimizationContext"
173173
:available-variables="variableManager?.variableManager.value?.resolveAllVariables() || {}"
@@ -1396,3 +1396,4 @@ import type { ModelSelectOption, TemplateSelectOption } from '@prompt-optimizer/
13961396
100% { transform: rotate(360deg); }
13971397
}
13981398
</style>
1399+

packages/web/src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
</NCard>
168168

169169
<!-- 组件 B: ConversationManager (使用v-show替代v-if避免组件频繁销毁重建) -->
170-
<NCard v-show="advancedModeEnabled" :style="{ flexShrink: 0, minHeight: '150px', overflow: 'auto' }" content-style="padding: 0;">
170+
<NCard v-show="advancedModeEnabled" :style="{ flexShrink: 0, overflow: 'auto' }" content-style="padding: 0;">
171171
<ConversationManager
172172
v-model:messages="optimizationContext"
173173
:available-variables="variableManager?.variableManager.value?.resolveAllVariables() || {}"
@@ -1396,3 +1396,4 @@ import type { ModelSelectOption, TemplateSelectOption } from '@prompt-optimizer/
13961396
100% { transform: rotate(360deg); }
13971397
}
13981398
</style>
1399+

0 commit comments

Comments
 (0)