perf: Fix the styling of the conversation section

This commit is contained in:
wangdan-fit2cloud 2025-12-25 17:56:42 +08:00
parent 4cecf86543
commit fb138dbde6
6 changed files with 26 additions and 13 deletions

View File

@ -458,13 +458,13 @@
>
<div class="card-never border-r-6 mt-8" v-if="data.index != 0">
<h5 class="p-8-12">{{ $t('chat.executionDetails.input') }}</h5>
<div class="p-8-12 border-t-dashed lighter pre-wrap">
<div class="p-8-12 border-t-dashed lighter break-all">
{{ data.params || '-' }}
</div>
</div>
<div class="card-never border-r-6 mt-8">
<h5 class="p-8-12">{{ $t('chat.executionDetails.output') }}</h5>
<div class="p-8-12 border-t-dashed lighter pre-wrap">
<div class="p-8-12 border-t-dashed lighter break-all">
{{ data.result || '-' }}
</div>
</div>
@ -999,7 +999,7 @@
<h5 class="p-8-12">
{{ $t('common.param.outputParam') }}
</h5>
<div class="p-8-12 border-t-dashed lighter">
<div class="p-8-12 border-t-dashed lighter break-all">
<div v-for="(f, i) in data.result" :key="i" class="mb-8">
<span class="color-secondary">result:</span> {{ f }}
</div>

View File

@ -5,6 +5,7 @@
width="800"
:close-on-click-modal="false"
:close-on-press-escape="false"
align-center
>
<el-card shadow="never" class="layout-bg mb-16">
<el-text type="info" class="color-secondary">{{ $t('layout.apiServiceAddress') }}</el-text>
@ -21,7 +22,13 @@
<el-button type="primary" class="mb-16" @click="createApiKey">
{{ $t('common.create') }}
</el-button>
<el-table :data="apiKey" class="mb-16" :loading="loading">
<el-table
:data="apiKey"
class="mb-16"
:loading="loading"
style="min-height: 300px"
:max-height="420"
>
<el-table-column prop="secret_key" label="API Key">
<template #default="{ row }">
<span class="vertical-middle lighter break-all">

View File

@ -10,7 +10,13 @@
<el-button type="primary" class="mb-16" @click="createApiKey">
{{ $t('common.create') }}
</el-button>
<el-table :data="apiKey" class="mb-16" :loading="loading" height="420">
<el-table
:data="apiKey"
class="mb-16"
:loading="loading"
style="min-height: 300px"
:max-height="500"
>
<el-table-column prop="secret_key" label="API Key">
<template #default="{ row }">
<span class="vertical-middle lighter break-all">
@ -121,9 +127,7 @@ async function changeState(row: any) {
const obj = {
is_active: !row.is_active,
}
const str = obj.is_active
? t('common.status.enabled')
: t('common.status.disabled')
const str = obj.is_active ? t('common.status.enabled') : t('common.status.disabled')
await loadSharedApi({ type: 'applicationKey', systemType: apiType.value })
.putAPIKey(id as string, row.id, obj, loading)
.then(() => {

View File

@ -116,7 +116,7 @@
<template #title>{{ $t('chat.createChat') }}</template>
</el-menu-item>
<el-sub-menu v-show="isPcCollapse" index="2" v-if="showHistory">
<el-sub-menu v-show="isPcCollapse" index="2" v-if="showHistory" :teleported="false">
<template #title>
<AppIcon iconName="app-history-outlined" />
</template>
@ -126,7 +126,7 @@
<span>{{ $t('chat.history') }}</span>
<el-tooltip effect="dark" :content="$t('chat.clearChat')" placement="right">
<el-button text @click.stop="clearChat">
<AppIcon iconName="app-delete"></AppIcon>
<AppIcon iconName="app-delete" class="color-secondary" style="font-size: 16px;"></AppIcon>
</el-button>
</el-tooltip>
</div>
@ -280,7 +280,6 @@ function refreshFieldTitle(chatId: string, abstract: string) {
</style>
<style lang="scss">
.chat-pc-popper {
background: #ffffff !important;
.el-menu {
background: var(--el-color-primary-light-06) !important;
}

View File

@ -11,8 +11,8 @@
align-center
class="scrollbar-dialog"
>
<el-scrollbar max-height="550">
<div class="p-8">
<el-scrollbar>
<div class="p-8" style="max-height: calc(100vh - 273px)">
<el-form
label-position="top"
ref="fieldFormRef"
@ -238,6 +238,7 @@
</el-form>
</div>
</el-scrollbar>
<template #footer>
<span class="dialog-footer">
<el-button @click.prevent="close"> {{ $t('common.cancel') }} </el-button>

View File

@ -44,6 +44,7 @@
v-model="form_data.mcp_tool_id"
filterable
@change="mcpToolSelectChange"
@wheel="wheel"
>
<el-option
v-for="mcpTool in mcpToolSelectOptions"
@ -85,6 +86,7 @@
@change="changeTool"
filterable
:teleported="false"
@wheel="wheel"
>
<el-option
v-for="item in form_data.mcp_tools"