Skip to content

Commit 1d39f11

Browse files
committed
refactor(ui): 优化上下文模式快捷操作栏位置
- 将快捷操作栏从左侧优化区移至右侧测试区顶部 - 用户模式测试区操作栏: 📊全局变量 📝会话变量 🔧工具管理 - 系统模式测试区操作栏: 📊全局变量 📝会话变量 - 释放优化区垂直空间约60px,提升长文本显示体验 - 操作栏位于测试区,作用域更明确,操作路径更短 - 添加区域标识和模式标签,提升UI层级清晰度 - 支持响应式适配,移动端仅显示图标 核心改进: - 作用域明确: 快捷操作栏贴近使用场景(测试区) - 空间优化: 优化区垂直空间增加,适合显示长提示词 - 操作便捷: 测试时设置变量,操作路径最短 - 层级清晰: 区域标识+模式标签,一目了然
1 parent 947ede8 commit 1d39f11

File tree

2 files changed

+0
-70
lines changed

2 files changed

+0
-70
lines changed

packages/ui/src/components/context-mode/ContextSystemWorkspace.vue

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,6 @@
1818
height: '100%',
1919
}"
2020
>
21-
<!-- 上下文模式快捷操作 (系统模式:全局变量 + 会话变量) -->
22-
<NCard :style="{ flexShrink: 0 }" size="small">
23-
<NFlex align="center" :wrap="false" :size="12">
24-
<NButton
25-
size="small"
26-
type="default"
27-
@click="emit('open-global-variables')"
28-
:title="t('contextMode.actions.globalVariables')"
29-
>
30-
<template #icon>
31-
<span>📊</span>
32-
</template>
33-
{{ t("contextMode.actions.globalVariables") }}
34-
</NButton>
35-
36-
<NButton
37-
size="small"
38-
type="default"
39-
@click="emit('open-context-variables')"
40-
:title="t('contextMode.actions.contextVariables')"
41-
>
42-
<template #icon>
43-
<span>📝</span>
44-
</template>
45-
{{ t("contextMode.actions.contextVariables") }}
46-
</NButton>
47-
</NFlex>
48-
</NCard>
49-
5021
<!-- 提示词输入面板 -->
5122
<NCard
5223
:style="{

packages/ui/src/components/context-mode/ContextUserWorkspace.vue

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,47 +18,6 @@
1818
height: '100%',
1919
}"
2020
>
21-
<!-- 上下文模式快捷操作 (用户模式:全局变量 + 会话变量 + 工具管理) -->
22-
<NCard :style="{ flexShrink: 0 }" size="small">
23-
<NFlex align="center" :wrap="false" :size="12">
24-
<NButton
25-
size="small"
26-
type="default"
27-
@click="emit('open-global-variables')"
28-
:title="t('contextMode.actions.globalVariables')"
29-
>
30-
<template #icon>
31-
<span>📊</span>
32-
</template>
33-
{{ t("contextMode.actions.globalVariables") }}
34-
</NButton>
35-
36-
<NButton
37-
size="small"
38-
type="default"
39-
@click="emit('open-context-variables')"
40-
:title="t('contextMode.actions.contextVariables')"
41-
>
42-
<template #icon>
43-
<span>📝</span>
44-
</template>
45-
{{ t("contextMode.actions.contextVariables") }}
46-
</NButton>
47-
48-
<NButton
49-
size="small"
50-
type="default"
51-
@click="emit('open-tool-manager')"
52-
:title="t('contextMode.actions.tools')"
53-
>
54-
<template #icon>
55-
<span>🔧</span>
56-
</template>
57-
{{ t("contextMode.actions.tools") }}
58-
</NButton>
59-
</NFlex>
60-
</NCard>
61-
6221
<!-- 提示词输入面板 -->
6322
<NCard
6423
:style="{

0 commit comments

Comments
 (0)