切片和聊天记录弹框统一为大弹框样式 (#3407)

知识库查看切片弹框加 size="large",聊天记录弹框去掉旧样式覆盖并把 body 改成 flex 列布局,底部下载按钮不再绝对定位,两个弹框跟历史版本对齐。
This commit is contained in:
hrz 2026-10-09 17:02:49 +08:00 committed by GitHub
parent 2b6483662a
commit 96c224c4e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 18 deletions

View file

@ -414,7 +414,8 @@ export default {
<style scoped>
.chat-container {
display: flex;
height: 100%;
flex: 1;
min-height: 0;
}
.session-list {
@ -611,10 +612,6 @@ export default {
display: flex;
gap: 10px;
border-top: 1px solid #eee;
position: absolute;
bottom: 0;
left: 0;
right: 0;
background-color: white;
}
@ -625,24 +622,14 @@ export default {
<style>
.chat-history-dialog {
display: flex;
flex-direction: column;
min-width: 700px;
margin: 0 !important;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 98vh;
max-width: 85vw;
border-radius: 12px;
overflow: hidden;
}
.chat-history-dialog .el-dialog__body {
padding: 0;
overflow: hidden;
height: calc(90vh - 54px);
/* 减去标题栏的高度 */
display: flex;
flex-direction: column;
}
</style>

View file

@ -114,6 +114,7 @@
:title="`${$t('knowledgeFileUpload.viewSlices')} - ${currentDocumentName}`"
:visible.sync="sliceDialogVisible"
width="1200px"
size="large"
:footer="false"
>
<div class="slice-management">
@ -1014,10 +1015,12 @@ export default {
.slice-content-container {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
.slice-cards-container {
max-height: 60vh;
flex: 1;
overflow-y: auto;
padding-right: 4px;
@ -1082,6 +1085,7 @@ export default {
}
.no-slice-data {
flex: 1;
min-height: 200px;
display: flex;
align-items: center;