mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
大弹框上下留白收口到十像素并按三档统一宽度
大弹框上下各留十像素让边框和圆角清晰可见。宽度按用途分三档:表单 960、含代码 1080、表格 80% 加宽度上限。供应器、上下文供应器、音色克隆都改 960;TTS 从 90% 改 80%;角色模板从 1200 改 1080;缓存查看从 70% 改 80%。新增模板的大文本框改成自适应高度。
This commit is contained in:
parent
bddd5e8b74
commit
f943d31d65
9 changed files with 36 additions and 22 deletions
|
|
@ -2115,11 +2115,11 @@ export default {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
margin: 0 auto !important;
|
||||
border-radius: 0;
|
||||
margin: 10px auto !important;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
height: 100vh;
|
||||
max-height: 100vh;
|
||||
height: calc(100vh - 20px);
|
||||
max-height: calc(100vh - 20px);
|
||||
}
|
||||
|
||||
::v-deep .el-dialog__wrapper {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<el-dialog
|
||||
:title="$t('cache.dialogTitle')"
|
||||
:visible.sync="visible"
|
||||
width="70%"
|
||||
width="80%"
|
||||
:before-close="handleClose"
|
||||
>
|
||||
<div v-if="isLoading" class="loading-container">
|
||||
|
|
@ -206,12 +206,13 @@ h3 {
|
|||
}
|
||||
|
||||
::v-deep .el-dialog {
|
||||
margin: 0 auto !important;
|
||||
height: 100vh;
|
||||
max-height: 100vh;
|
||||
border-radius: 0;
|
||||
margin: 10px auto !important;
|
||||
height: calc(100vh - 20px);
|
||||
max-height: calc(100vh - 20px);
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 1280px;
|
||||
}
|
||||
|
||||
::v-deep .el-dialog__wrapper {
|
||||
|
|
@ -220,7 +221,7 @@ h3 {
|
|||
|
||||
::v-deep .el-dialog__body {
|
||||
flex: 1;
|
||||
max-height: calc(100vh - 130px);
|
||||
max-height: calc(100vh - 20px - 130px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<CustomDialog
|
||||
:title="$t('contextProviderDialog.title')"
|
||||
:visible.sync="dialogVisible"
|
||||
width="720px"
|
||||
width="960px"
|
||||
size="large"
|
||||
class="context-provider-dialog"
|
||||
:closeOnClickModal="false"
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ export default {
|
|||
const classes = ["custom-dialog"];
|
||||
if (this.customClass) classes.push(this.customClass);
|
||||
if (this.size === "large") classes.push("custom-dialog--large");
|
||||
if (String(this.width).includes("%")) classes.push("custom-dialog--fluid");
|
||||
return classes.join(" ");
|
||||
},
|
||||
},
|
||||
|
|
@ -266,16 +267,21 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
/* size="large":dialog 撑满整个浏览器高度 */
|
||||
/* size="large":dialog 上下各留 10px 让边框和圆角可见,但仍占满大部分浏览器高度 */
|
||||
::v-deep .el-dialog.custom-dialog.custom-dialog--large {
|
||||
margin: 0 auto !important;
|
||||
height: 100vh;
|
||||
max-height: 100vh;
|
||||
border-radius: 0;
|
||||
margin: 10px auto !important;
|
||||
height: calc(100vh - 20px);
|
||||
max-height: calc(100vh - 20px);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
::v-deep .el-dialog.custom-dialog.custom-dialog--large.custom-dialog--fluid {
|
||||
max-width: var(--dialog-table-max);
|
||||
}
|
||||
|
||||
::v-deep .el-dialog.custom-dialog--large .el-dialog__body {
|
||||
max-height: calc(100vh - 120px);
|
||||
max-height: calc(100vh - 20px - 110px);
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<CustomDialog
|
||||
:title="title"
|
||||
:visible.sync="visible"
|
||||
width="57%"
|
||||
width="960px"
|
||||
size="large"
|
||||
class="provider-dialog-wrapper"
|
||||
@confirm="submit"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<CustomDialog :visible.sync="localVisible" :title="$t('modelConfig.voiceManagement')" width="90%" size="large"
|
||||
<CustomDialog :visible.sync="localVisible" :title="$t('modelConfig.voiceManagement')" width="80%" size="large"
|
||||
:close-on-click-modal="true" :destroy-on-close="false" :footer="false" :append-to-body="true"
|
||||
@close="handleClose">
|
||||
<div class="scroll-wrapper">
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<CustomDialog
|
||||
:title="$t('voiceClone.dialogTitle')"
|
||||
:visible.sync="innerVisible"
|
||||
width="900px"
|
||||
width="960px"
|
||||
size="large"
|
||||
:footer="false"
|
||||
@close="handleDialogClose"
|
||||
|
|
|
|||
|
|
@ -44,3 +44,10 @@ select:-webkit-autofill:focus {
|
|||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
// 大弹框宽度档位(三档:表单 / 代码 / 表格)
|
||||
:root {
|
||||
--dialog-form: 960px;
|
||||
--dialog-code: 1080px;
|
||||
--dialog-table-max: 1280px;
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
:visible.sync="dialogVisible"
|
||||
:confirm-loading="confirmLoading"
|
||||
:footer="true"
|
||||
:width="'1200px'"
|
||||
:width="'1080px'"
|
||||
size="large"
|
||||
@confirm="handleDialogConfirm"
|
||||
@cancel="dialogVisible = false"
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
:placeholder="$t('templateQuickConfig.agentSettings.systemPromptPlaceholder')"
|
||||
show-word-limit
|
||||
maxlength="2000"
|
||||
:rows="16"
|
||||
:autosize="{ minRows: 16 }"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
|
|
|||
Loading…
Reference in a new issue