mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
perf: 优化会话框自适应宽度问题
This commit is contained in:
parent
95584496fc
commit
d0e67d2983
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div ref="aiChatRef" class="ai-chat" :class="log ? 'chart-log' : ''">
|
||||
<div
|
||||
v-if="inputFieldList.length > 0 || (debug && apiInputFieldList.length > 0)"
|
||||
v-if="(inputFieldList.length > 0 || (debug && apiInputFieldList.length > 0)) && !log"
|
||||
class="mb-16"
|
||||
style="padding: 0 24px"
|
||||
>
|
||||
|
|
@ -1098,4 +1098,10 @@ defineExpose({
|
|||
max-width: 80%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@media only screen and (max-width: 1000px) {
|
||||
.chat-width {
|
||||
max-width: 100% !important;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -327,5 +327,9 @@ onBeforeUnmount(() => {
|
|||
bottom: 0 !important;
|
||||
right: 0 !important;
|
||||
}
|
||||
.chat-width {
|
||||
max-width: 100% !important;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ onMounted(() => {
|
|||
}
|
||||
}
|
||||
.chat-width {
|
||||
max-width: 80%;
|
||||
// max-width: 80%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue