fix: embed height

This commit is contained in:
wangdan-fit2cloud 2025-07-12 14:33:32 +08:00
parent a3ae33bf7c
commit 34e84602ff
3 changed files with 12 additions and 2 deletions

View File

@ -244,6 +244,10 @@ function initMaxkbStyle(root, maxkbId){
height: 680px; height: 680px;
display:none; display:none;
} }
@media only screen and (max-height: 680px) {
#maxkb-chat-container{
height: 600px}
}
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
#maxkb-chat-container { #maxkb-chat-container {
width: 100%; width: 100%;

View File

@ -1,5 +1,5 @@
<template> <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"> <div class="text-center mb-8" v-if="loading">
<el-button class="border-primary video-stop-button" @click="stopChat"> <el-button class="border-primary video-stop-button" @click="stopChat">
<app-icon iconName="app-video-stop" class="mr-8"></app-icon> <app-icon iconName="app-video-stop" class="mr-8"></app-icon>
@ -180,7 +180,6 @@
:maxlength="100000" :maxlength="100000"
@keydown.enter="sendChatHandle($event)" @keydown.enter="sendChatHandle($event)"
@paste="handlePaste" @paste="handlePaste"
@drop="handleDrop"
class="chat-operate-textarea" class="chat-operate-textarea"
/> />
@ -484,6 +483,7 @@ const handlePaste = (event: ClipboardEvent) => {
} }
// //
const handleDrop = (event: DragEvent) => { const handleDrop = (event: DragEvent) => {
console.log(event)
if (!props.applicationDetails.file_upload_enable) return if (!props.applicationDetails.file_upload_enable) return
event.preventDefault() event.preventDefault()
const files = event.dataTransfer?.files const files = event.dataTransfer?.files

View File

@ -622,4 +622,10 @@ onBeforeUnmount(() => {
margin: 0 auto; margin: 0 auto;
} }
} }
@media only screen and (max-height: 680px) {
.workflow-debug-container {
height: 600px;
}
}
</style> </style>