From 30b17bdfcd3773a5bb221e31109017678bbae6ca Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 9 Nov 2026 18:22:29 +0800 Subject: [PATCH] fix: style --- ui/src/components/global/mk-dropdown/index.vue | 1 + .../display-setting/components/DisplaySettingPreview.vue | 3 ++- .../views/application/components/ButtonCreateApplication.vue | 1 + ui/src/views/knowledge/components/ButtonCreateKnowledge.vue | 1 + ui/src/views/tool/components/ButtonCreateTool.vue | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/components/global/mk-dropdown/index.vue b/ui/src/components/global/mk-dropdown/index.vue index 9fae2ec3046..c191d680c06 100644 --- a/ui/src/components/global/mk-dropdown/index.vue +++ b/ui/src/components/global/mk-dropdown/index.vue @@ -63,6 +63,7 @@ defineExpose({ handleOpen, handleClose }) v-if="!hideWhenEmpty || hasDropdownContent(slots.dropdown?.())" class="mk-dropdown" ref="dropdownRef" + :popper-options="popperOptions" :persistent="persistent && hasOpened" v-bind="$attrs" @visible-change="handleVisibleChange" diff --git a/ui/src/views/application-detail/overview/display-setting/components/DisplaySettingPreview.vue b/ui/src/views/application-detail/overview/display-setting/components/DisplaySettingPreview.vue index fbd52881250..84f143657f6 100644 --- a/ui/src/views/application-detail/overview/display-setting/components/DisplaySettingPreview.vue +++ b/ui/src/views/application-detail/overview/display-setting/components/DisplaySettingPreview.vue @@ -2,6 +2,7 @@ import { computed } from 'vue' import type { CSSProperties } from 'vue' import type { ApplicationDisplaySetting } from '@/api/types' +import defaultFloatIconUrl from '/MaxKB.gif?url' defineOptions({ name: 'DisplaySettingPreview' }) @@ -79,6 +80,6 @@ const previewHeaderStyle = computed(() => ({ - + diff --git a/ui/src/views/application/components/ButtonCreateApplication.vue b/ui/src/views/application/components/ButtonCreateApplication.vue index 592c51cbff6..076c3a1c2da 100644 --- a/ui/src/views/application/components/ButtonCreateApplication.vue +++ b/ui/src/views/application/components/ButtonCreateApplication.vue @@ -85,6 +85,7 @@ function handleRefresh() { placement="bottom-end" persistent :class="{ 'w-full': $slots.trigger }" + :popper-options="fitTriggerWidth ? { modifiers: [{ name: 'computeStyles', options: { roundOffsets: false } }] } : undefined" :popper-style="dropdownStyle" :popper-class="popperClass" @visible-change="handleVisibleChange" diff --git a/ui/src/views/knowledge/components/ButtonCreateKnowledge.vue b/ui/src/views/knowledge/components/ButtonCreateKnowledge.vue index 53dae8c9a3f..25fa062a238 100644 --- a/ui/src/views/knowledge/components/ButtonCreateKnowledge.vue +++ b/ui/src/views/knowledge/components/ButtonCreateKnowledge.vue @@ -120,6 +120,7 @@ function handleImportCreate(file: UploadFile) { placement="bottom-end" persistent :class="{ 'w-full': $slots.trigger }" + :popper-options="fitTriggerWidth ? { modifiers: [{ name: 'computeStyles', options: { roundOffsets: false } }] } : undefined" :popper-style="dropdownStyle" :popper-class="popperClass" @visible-change="handleVisibleChange" diff --git a/ui/src/views/tool/components/ButtonCreateTool.vue b/ui/src/views/tool/components/ButtonCreateTool.vue index 29f895fd4d1..c02bbb8f549 100644 --- a/ui/src/views/tool/components/ButtonCreateTool.vue +++ b/ui/src/views/tool/components/ButtonCreateTool.vue @@ -118,6 +118,7 @@ function handleRefresh() { placement="bottom-end" persistent :class="{ 'w-full': $slots.trigger }" + :popper-options="fitTriggerWidth ? { modifiers: [{ name: 'computeStyles', options: { roundOffsets: false } }] } : undefined" :popper-style="dropdownStyle" :popper-class="popperClass" @visible-change="handleVisibleChange"