聊天记录弹框底部不再留大量空白 (#3410)

弹框本身和 body 用 !important 撑到视口(body 顶开 size="large" 默认多扣的 56px footer 高度)。body 的高度由 flex: 1 自动撑满,max-height 只用来顶开原来的 950px 上限。
This commit is contained in:
hrz 2026-10-09 17:24:39 +08:00 committed by GitHub
parent 23d0e64d9d
commit a6cd755cf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -624,6 +624,8 @@ export default {
.chat-history-dialog {
min-width: 700px;
max-width: 85vw;
/* 兜底,防止 size="large" 那个 height 没有生效时弹框缩成内容高度 */
height: calc(100vh - 20px) !important;
}
.chat-history-dialog .el-dialog__body {
@ -631,5 +633,7 @@ export default {
overflow: hidden;
display: flex;
flex-direction: column;
/* 顶开 size="large" 默认的 100vh - 130px,让 body 真正撑到弹框底部,flex: 1 会自动填满 */
max-height: calc(100vh - 74px) !important;
}
</style>