From 08f294968e63774fb5cc3b61503e28e18c13cef1 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 19 Mar 2025 16:04:23 +0800 Subject: [PATCH 1/4] fix: Optimize small screen dialogue style --- ui/src/components/ai-chat/KnowledgeSource.vue | 131 ++++++------ .../component/answer-content/index.vue | 8 +- .../operation-button/ChatOperationButton.vue | 189 ++++++++++-------- .../component/operation-button/index.vue | 56 +++--- 4 files changed, 203 insertions(+), 181 deletions(-) diff --git a/ui/src/components/ai-chat/KnowledgeSource.vue b/ui/src/components/ai-chat/KnowledgeSource.vue index 486e58ffba1..0c98666d85b 100644 --- a/ui/src/components/ai-chat/KnowledgeSource.vue +++ b/ui/src/components/ai-chat/KnowledgeSource.vue @@ -1,66 +1,71 @@ diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 6a7bd28dbc0..b09e7d68326 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -34,9 +34,11 @@ {{ $t('chat.tip.answerLoading') }}

-
- -
+ diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue index 704d825ec34..187bc6a3c5b 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -1,82 +1,88 @@ - + diff --git a/ui/src/components/ai-chat/component/operation-button/index.vue b/ui/src/components/ai-chat/component/operation-button/index.vue index 4a602a0994e..39a5f81ec9d 100644 --- a/ui/src/components/ai-chat/component/operation-button/index.vue +++ b/ui/src/components/ai-chat/component/operation-button/index.vue @@ -1,5 +1,5 @@ + + + diff --git a/ui/src/assets/acoustic-color.svg b/ui/src/assets/acoustic-color.svg new file mode 100644 index 00000000000..d9cfa1498c6 --- /dev/null +++ b/ui/src/assets/acoustic-color.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/src/assets/acoustic.svg b/ui/src/assets/acoustic.svg new file mode 100644 index 00000000000..a400eff9be4 --- /dev/null +++ b/ui/src/assets/acoustic.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/src/components/ai-chat/KnowledgeSource.vue b/ui/src/components/ai-chat/KnowledgeSource.vue index 0c98666d85b..729a6317b62 100644 --- a/ui/src/components/ai-chat/KnowledgeSource.vue +++ b/ui/src/components/ai-chat/KnowledgeSource.vue @@ -112,7 +112,7 @@ const uniqueParagraphList = computed(() => { }) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index copy 2.vue b/ui/src/components/ai-chat/component/chat-input-operate/index copy 2.vue new file mode 100644 index 00000000000..14e185a6996 --- /dev/null +++ b/ui/src/components/ai-chat/component/chat-input-operate/index copy 2.vue @@ -0,0 +1,625 @@ + + + diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index 14e185a6996..08cfc8b93d1 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -1,5 +1,5 @@ @@ -201,6 +224,7 @@ - diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue index 187bc6a3c5b..5f86fb7bca8 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -307,7 +307,7 @@ onMounted(() => { }) + diff --git a/ui/src/components/dynamics-form/index.vue b/ui/src/components/dynamics-form/index.vue index 8885aeec9fb..28bea502e23 100644 --- a/ui/src/components/dynamics-form/index.vue +++ b/ui/src/components/dynamics-form/index.vue @@ -219,4 +219,4 @@ defineExpose({ ruleFormRef }) - + diff --git a/ui/src/components/dynamics-form/items/label/TooltipLabel.vue b/ui/src/components/dynamics-form/items/label/TooltipLabel.vue index d9669fd45e9..2ca9911f4f5 100644 --- a/ui/src/components/dynamics-form/items/label/TooltipLabel.vue +++ b/ui/src/components/dynamics-form/items/label/TooltipLabel.vue @@ -17,7 +17,7 @@ defineProps<{ tooltip: string }>() - + diff --git a/ui/src/components/icons/index.ts b/ui/src/components/icons/index.ts index 5c7e7ca1f99..81d471b2a5f 100644 --- a/ui/src/components/icons/index.ts +++ b/ui/src/components/icons/index.ts @@ -1415,5 +1415,30 @@ export const iconMap: any = { ) ]) } + }, + 'app-keyboard': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + style: { height: '100%', width: '100%' }, + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg' + }, + [ + h('path', { + d: 'M373.333333 352a53.333333 53.333333 0 1 1-106.666666 0 53.333333 53.333333 0 0 1 106.666666 0zM320 576a53.333333 53.333333 0 1 0 0-106.666667 53.333333 53.333333 0 0 0 0 106.666667zM565.333333 352a53.333333 53.333333 0 1 1-106.666666 0 53.333333 53.333333 0 0 1 106.666666 0zM512 576a53.333333 53.333333 0 1 0 0-106.666667 53.333333 53.333333 0 0 0 0 106.666667zM757.333333 352a53.333333 53.333333 0 1 1-106.666666 0 53.333333 53.333333 0 0 1 106.666666 0zM704 576a53.333333 53.333333 0 1 0 0-106.666667 53.333333 53.333333 0 0 0 0 106.666667zM362.666667 661.333333a42.666667 42.666667 0 1 0 0 85.333334h298.666666a42.666667 42.666667 0 1 0 0-85.333334h-298.666666z', + fill: 'currentColor' + }), + h('path', { + d: 'M512 42.666667C252.8 42.666667 42.666667 252.8 42.666667 512s210.133333 469.333333 469.333333 469.333333 469.333333-210.133333 469.333333-469.333333S771.2 42.666667 512 42.666667zM128 512a384 384 0 1 1 768 0 384 384 0 0 1-768 0z', + fill: 'currentColor' + }) + ] + ) + ]) + } } } diff --git a/ui/src/components/layout-container/index.vue b/ui/src/components/layout-container/index.vue index ec5d8c3b21f..09f0123f31a 100644 --- a/ui/src/components/layout-container/index.vue +++ b/ui/src/components/layout-container/index.vue @@ -30,7 +30,7 @@ const showBack = computed(() => { }) - + diff --git a/ui/src/views/application-overview/component/DisplaySettingDialog.vue b/ui/src/views/application-overview/component/DisplaySettingDialog.vue index 4f35b10ea23..a094bc67088 100644 --- a/ui/src/views/application-overview/component/DisplaySettingDialog.vue +++ b/ui/src/views/application-overview/component/DisplaySettingDialog.vue @@ -99,4 +99,4 @@ const submit = async (formEl: FormInstance | undefined) => { defineExpose({ open }) - + diff --git a/ui/src/views/application-overview/component/EditAvatarDialog.vue b/ui/src/views/application-overview/component/EditAvatarDialog.vue index cf8083735e2..c7f7a40d8ed 100644 --- a/ui/src/views/application-overview/component/EditAvatarDialog.vue +++ b/ui/src/views/application-overview/component/EditAvatarDialog.vue @@ -139,4 +139,4 @@ function submit() { defineExpose({ open }) - + diff --git a/ui/src/views/application-overview/component/EmbedDialog.vue b/ui/src/views/application-overview/component/EmbedDialog.vue index 8aaf4a9bc33..428a2522446 100644 --- a/ui/src/views/application-overview/component/EmbedDialog.vue +++ b/ui/src/views/application-overview/component/EmbedDialog.vue @@ -132,7 +132,7 @@ src="${window.location.origin}/api/application/embed?protocol=${window.location. <\/script> ` source3.value = `