fix: stabilize agent knowledge dropdown

This commit is contained in:
2026-07-13 12:09:43 +08:00
parent 120fe185f9
commit 2453816364
2 changed files with 11 additions and 2 deletions

View File

@@ -45,6 +45,8 @@ import "element-plus/theme-chalk/el-message-box.css";
import "element-plus/theme-chalk/el-option.css"; import "element-plus/theme-chalk/el-option.css";
import "element-plus/theme-chalk/el-overlay.css"; import "element-plus/theme-chalk/el-overlay.css";
import "element-plus/theme-chalk/el-progress.css"; import "element-plus/theme-chalk/el-progress.css";
import "element-plus/theme-chalk/el-popper.css";
import "element-plus/theme-chalk/el-scrollbar.css";
import "element-plus/theme-chalk/el-select.css"; import "element-plus/theme-chalk/el-select.css";
import "element-plus/theme-chalk/el-switch.css"; import "element-plus/theme-chalk/el-switch.css";
import "element-plus/theme-chalk/el-table.css"; import "element-plus/theme-chalk/el-table.css";

View File

@@ -713,8 +713,15 @@ textarea {
} }
.debug-knowledge-select { width: 100%; min-width: 0; } .debug-knowledge-select { width: 100%; min-width: 0; }
.debug-knowledge-select .el-select__wrapper { min-height: 40px; max-height: 76px; overflow-y: auto; } .debug-knowledge-select .el-select__wrapper { height: 40px; min-height: 40px; overflow: hidden; }
.debug-knowledge-popper { max-width: min(620px, 90vw); z-index: 4000 !important; } .debug-knowledge-select .el-select__selection { flex-wrap: nowrap; overflow: hidden; }
.debug-knowledge-select .el-select__selected-item { min-width: 0; flex-shrink: 1; }
.debug-knowledge-popper.el-popper { z-index: 4000 !important; max-width: min(620px, 90vw); background: #fff; opacity: 1; overflow: hidden; }
.debug-knowledge-popper .el-select-dropdown,
.debug-knowledge-popper .el-scrollbar,
.debug-knowledge-popper .el-scrollbar__wrap,
.debug-knowledge-popper .el-select-dropdown__list { background: #fff; }
.debug-knowledge-popper .el-select-dropdown__wrap { max-height: 320px; overscroll-behavior: contain; }
.debug-knowledge-popper .el-select-dropdown__item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .debug-knowledge-popper .el-select-dropdown__item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-row-actions { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; white-space: nowrap; } .table-row-actions { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; white-space: nowrap; }
.table-row-actions .el-button + .el-button { margin-left: 0; } .table-row-actions .el-button + .el-button { margin-left: 0; }