Skip to content

Commit fb138db

Browse files
perf: Fix the styling of the conversation section
1 parent 4cecf86 commit fb138db

File tree

6 files changed

+26
-13
lines changed

6 files changed

+26
-13
lines changed

ui/src/components/execution-detail-card/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,13 +458,13 @@
458458
>
459459
<div class="card-never border-r-6 mt-8" v-if="data.index != 0">
460460
<h5 class="p-8-12">{{ $t('chat.executionDetails.input') }}</h5>
461-
<div class="p-8-12 border-t-dashed lighter pre-wrap">
461+
<div class="p-8-12 border-t-dashed lighter break-all">
462462
{{ data.params || '-' }}
463463
</div>
464464
</div>
465465
<div class="card-never border-r-6 mt-8">
466466
<h5 class="p-8-12">{{ $t('chat.executionDetails.output') }}</h5>
467-
<div class="p-8-12 border-t-dashed lighter pre-wrap">
467+
<div class="p-8-12 border-t-dashed lighter break-all">
468468
{{ data.result || '-' }}
469469
</div>
470470
</div>
@@ -999,7 +999,7 @@
999999
<h5 class="p-8-12">
10001000
{{ $t('common.param.outputParam') }}
10011001
</h5>
1002-
<div class="p-8-12 border-t-dashed lighter">
1002+
<div class="p-8-12 border-t-dashed lighter break-all">
10031003
<div v-for="(f, i) in data.result" :key="i" class="mb-8">
10041004
<span class="color-secondary">result:</span> {{ f }}
10051005
</div>

ui/src/layout/layout-header/avatar/APIKeyDialog.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
width="800"
66
:close-on-click-modal="false"
77
:close-on-press-escape="false"
8+
align-center
89
>
910
<el-card shadow="never" class="layout-bg mb-16">
1011
<el-text type="info" class="color-secondary">{{ $t('layout.apiServiceAddress') }}</el-text>
@@ -21,7 +22,13 @@
2122
<el-button type="primary" class="mb-16" @click="createApiKey">
2223
{{ $t('common.create') }}
2324
</el-button>
24-
<el-table :data="apiKey" class="mb-16" :loading="loading">
25+
<el-table
26+
:data="apiKey"
27+
class="mb-16"
28+
:loading="loading"
29+
style="min-height: 300px"
30+
:max-height="420"
31+
>
2532
<el-table-column prop="secret_key" label="API Key">
2633
<template #default="{ row }">
2734
<span class="vertical-middle lighter break-all">

ui/src/views/application-overview/component/APIKeyDialog.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
<el-button type="primary" class="mb-16" @click="createApiKey">
1111
{{ $t('common.create') }}
1212
</el-button>
13-
<el-table :data="apiKey" class="mb-16" :loading="loading" height="420">
13+
<el-table
14+
:data="apiKey"
15+
class="mb-16"
16+
:loading="loading"
17+
style="min-height: 300px"
18+
:max-height="500"
19+
>
1420
<el-table-column prop="secret_key" label="API Key">
1521
<template #default="{ row }">
1622
<span class="vertical-middle lighter break-all">
@@ -121,9 +127,7 @@ async function changeState(row: any) {
121127
const obj = {
122128
is_active: !row.is_active,
123129
}
124-
const str = obj.is_active
125-
? t('common.status.enabled')
126-
: t('common.status.disabled')
130+
const str = obj.is_active ? t('common.status.enabled') : t('common.status.disabled')
127131
await loadSharedApi({ type: 'applicationKey', systemType: apiType.value })
128132
.putAPIKey(id as string, row.id, obj, loading)
129133
.then(() => {

ui/src/views/chat/component/HistoryPanel.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<template #title>{{ $t('chat.createChat') }}</template>
117117
</el-menu-item>
118118

119-
<el-sub-menu v-show="isPcCollapse" index="2" v-if="showHistory">
119+
<el-sub-menu v-show="isPcCollapse" index="2" v-if="showHistory" :teleported="false">
120120
<template #title>
121121
<AppIcon iconName="app-history-outlined" />
122122
</template>
@@ -126,7 +126,7 @@
126126
<span>{{ $t('chat.history') }}</span>
127127
<el-tooltip effect="dark" :content="$t('chat.clearChat')" placement="right">
128128
<el-button text @click.stop="clearChat">
129-
<AppIcon iconName="app-delete"></AppIcon>
129+
<AppIcon iconName="app-delete" class="color-secondary" style="font-size: 16px;"></AppIcon>
130130
</el-button>
131131
</el-tooltip>
132132
</div>
@@ -280,7 +280,6 @@ function refreshFieldTitle(chatId: string, abstract: string) {
280280
</style>
281281
<style lang="scss">
282282
.chat-pc-popper {
283-
background: #ffffff !important;
284283
.el-menu {
285284
background: var(--el-color-primary-light-06) !important;
286285
}

ui/src/workflow/nodes/base-node/component/FileUploadSettingDialog.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
align-center
1212
class="scrollbar-dialog"
1313
>
14-
<el-scrollbar max-height="550">
15-
<div class="p-8">
14+
<el-scrollbar>
15+
<div class="p-8" style="max-height: calc(100vh - 273px)">
1616
<el-form
1717
label-position="top"
1818
ref="fieldFormRef"
@@ -238,6 +238,7 @@
238238
</el-form>
239239
</div>
240240
</el-scrollbar>
241+
241242
<template #footer>
242243
<span class="dialog-footer">
243244
<el-button @click.prevent="close"> {{ $t('common.cancel') }} </el-button>

ui/src/workflow/nodes/mcp-node/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
v-model="form_data.mcp_tool_id"
4545
filterable
4646
@change="mcpToolSelectChange"
47+
@wheel="wheel"
4748
>
4849
<el-option
4950
v-for="mcpTool in mcpToolSelectOptions"
@@ -85,6 +86,7 @@
8586
@change="changeTool"
8687
filterable
8788
:teleported="false"
89+
@wheel="wheel"
8890
>
8991
<el-option
9092
v-for="item in form_data.mcp_tools"

0 commit comments

Comments
 (0)