mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 07:52:50 +00:00
fix: embed height
This commit is contained in:
parent
a3ae33bf7c
commit
34e84602ff
|
|
@ -244,6 +244,10 @@ function initMaxkbStyle(root, maxkbId){
|
|||
height: 680px;
|
||||
display:none;
|
||||
}
|
||||
@media only screen and (max-height: 680px) {
|
||||
#maxkb-chat-container{
|
||||
height: 600px}
|
||||
}
|
||||
@media only screen and (max-width: 768px) {
|
||||
#maxkb-chat-container {
|
||||
width: 100%;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="ai-chat__operate p-16">
|
||||
<div class="ai-chat__operate p-16" @drop="handleDrop">
|
||||
<div class="text-center mb-8" v-if="loading">
|
||||
<el-button class="border-primary video-stop-button" @click="stopChat">
|
||||
<app-icon iconName="app-video-stop" class="mr-8"></app-icon>
|
||||
|
|
@ -180,7 +180,6 @@
|
|||
:maxlength="100000"
|
||||
@keydown.enter="sendChatHandle($event)"
|
||||
@paste="handlePaste"
|
||||
@drop="handleDrop"
|
||||
class="chat-operate-textarea"
|
||||
/>
|
||||
|
||||
|
|
@ -484,6 +483,7 @@ const handlePaste = (event: ClipboardEvent) => {
|
|||
}
|
||||
// 新增拖拽处理
|
||||
const handleDrop = (event: DragEvent) => {
|
||||
console.log(event)
|
||||
if (!props.applicationDetails.file_upload_enable) return
|
||||
event.preventDefault()
|
||||
const files = event.dataTransfer?.files
|
||||
|
|
|
|||
|
|
@ -622,4 +622,10 @@ onBeforeUnmount(() => {
|
|||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-height: 680px) {
|
||||
.workflow-debug-container {
|
||||
height: 600px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue