Skip to content

Commit 34e8460

Browse files
fix: embed height
1 parent a3ae33b commit 34e8460

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

apps/chat/template/embed.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ function initMaxkbStyle(root, maxkbId){
244244
height: 680px;
245245
display:none;
246246
}
247+
@media only screen and (max-height: 680px) {
248+
#maxkb-chat-container{
249+
height: 600px}
250+
}
247251
@media only screen and (max-width: 768px) {
248252
#maxkb-chat-container {
249253
width: 100%;

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="ai-chat__operate p-16">
2+
<div class="ai-chat__operate p-16" @drop="handleDrop">
33
<div class="text-center mb-8" v-if="loading">
44
<el-button class="border-primary video-stop-button" @click="stopChat">
55
<app-icon iconName="app-video-stop" class="mr-8"></app-icon>
@@ -180,7 +180,6 @@
180180
:maxlength="100000"
181181
@keydown.enter="sendChatHandle($event)"
182182
@paste="handlePaste"
183-
@drop="handleDrop"
184183
class="chat-operate-textarea"
185184
/>
186185

@@ -484,6 +483,7 @@ const handlePaste = (event: ClipboardEvent) => {
484483
}
485484
// 新增拖拽处理
486485
const handleDrop = (event: DragEvent) => {
486+
console.log(event)
487487
if (!props.applicationDetails.file_upload_enable) return
488488
event.preventDefault()
489489
const files = event.dataTransfer?.files

ui/src/views/application-workflow/index.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,4 +622,10 @@ onBeforeUnmount(() => {
622622
margin: 0 auto;
623623
}
624624
}
625+
@media only screen and (max-height: 680px) {
626+
.workflow-debug-container {
627+
height: 600px;
628+
}
629+
}
630+
625631
</style>

0 commit comments

Comments
 (0)