mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-23 03:19:41 +00:00
聊天记录弹框底部不再留大量空白 (#3410)
弹框本身和 body 用 !important 撑到视口(body 顶开 size="large" 默认多扣的 56px footer 高度)。body 的高度由 flex: 1 自动撑满,max-height 只用来顶开原来的 950px 上限。
This commit is contained in:
parent
23d0e64d9d
commit
a6cd755cf2
1 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
Loading…
Reference in a new issue