mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
切片和聊天记录弹框统一为大弹框样式 (#3407)
知识库查看切片弹框加 size="large",聊天记录弹框去掉旧样式覆盖并把 body 改成 flex 列布局,底部下载按钮不再绝对定位,两个弹框跟历史版本对齐。
This commit is contained in:
parent
2b6483662a
commit
96c224c4e4
2 changed files with 9 additions and 18 deletions
|
|
@ -414,7 +414,8 @@ export default {
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.chat-container {
|
.chat-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-list {
|
.session-list {
|
||||||
|
|
@ -611,10 +612,6 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
border-top: 1px solid #eee;
|
border-top: 1px solid #eee;
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -625,24 +622,14 @@ export default {
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.chat-history-dialog {
|
.chat-history-dialog {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-width: 700px;
|
min-width: 700px;
|
||||||
margin: 0 !important;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
height: 98vh;
|
|
||||||
max-width: 85vw;
|
max-width: 85vw;
|
||||||
border-radius: 12px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-history-dialog .el-dialog__body {
|
.chat-history-dialog .el-dialog__body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: calc(90vh - 54px);
|
display: flex;
|
||||||
/* 减去标题栏的高度 */
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -114,6 +114,7 @@
|
||||||
:title="`${$t('knowledgeFileUpload.viewSlices')} - ${currentDocumentName}`"
|
:title="`${$t('knowledgeFileUpload.viewSlices')} - ${currentDocumentName}`"
|
||||||
:visible.sync="sliceDialogVisible"
|
:visible.sync="sliceDialogVisible"
|
||||||
width="1200px"
|
width="1200px"
|
||||||
|
size="large"
|
||||||
:footer="false"
|
:footer="false"
|
||||||
>
|
>
|
||||||
<div class="slice-management">
|
<div class="slice-management">
|
||||||
|
|
@ -1014,10 +1015,12 @@ export default {
|
||||||
.slice-content-container {
|
.slice-content-container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slice-cards-container {
|
.slice-cards-container {
|
||||||
max-height: 60vh;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
|
|
||||||
|
|
@ -1082,6 +1085,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-slice-data {
|
.no-slice-data {
|
||||||
|
flex: 1;
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue