diff --git a/easyflow-ui-admin/app/src/components/chat/chat.vue b/easyflow-ui-admin/app/src/components/chat/chat.vue index 27039ac..6856a7a 100644 --- a/easyflow-ui-admin/app/src/components/chat/chat.vue +++ b/easyflow-ui-admin/app/src/components/chat/chat.vue @@ -1,12 +1,15 @@ + @@ -638,6 +730,7 @@ function handlePasteFile(_: any, fileList: FileList) { } .message-container { + position: relative; padding: 8px; background-color: var(--bot-chat-message-container); border-radius: 8px; @@ -647,6 +740,30 @@ function handlePasteFile(_: any, fileList: FileList) { border: 1px solid hsl(var(--border)); } +.chat-back-to-bottom-btn { + position: absolute; + right: 16px; + bottom: 16px; + z-index: 2; + display: inline-flex; + align-items: center; + justify-content: center; + width: 36px; + height: 36px; + color: var(--el-text-color-regular); + cursor: pointer; + background: var(--el-bg-color-overlay); + border: 1px solid var(--el-border-color-light); + border-radius: 999px; + box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08); + transition: all 0.2s ease; +} + +.chat-back-to-bottom-btn:hover { + color: var(--el-color-primary); + transform: translateY(-1px); +} + :deep(.el-bubble-content-wrapper .el-bubble-content-filled[data-v-a52d8fe0]) { background-color: var(--bot-chat-message-item-back); } diff --git a/easyflow-ui-admin/app/src/views/ai/documentCollection/FaqEditDialog.vue b/easyflow-ui-admin/app/src/views/ai/documentCollection/FaqEditDialog.vue index 92efce1..a1de721 100644 --- a/easyflow-ui-admin/app/src/views/ai/documentCollection/FaqEditDialog.vue +++ b/easyflow-ui-admin/app/src/views/ai/documentCollection/FaqEditDialog.vue @@ -101,8 +101,12 @@ const focusAnswerEditor = () => { }); }; -const handleQuestionKeydown = (event: KeyboardEvent) => { - if (event.key === 'Tab' && !event.shiftKey) { +const handleQuestionKeydown = (event: Event | KeyboardEvent) => { + if ( + event instanceof KeyboardEvent && + event.key === 'Tab' && + !event.shiftKey + ) { event.preventDefault(); focusAnswerEditor(); }