From f45f86601e063591835c7e392f17b45e2a645315 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 1 Jul 2026 07:39:50 +0000 Subject: [PATCH] =?UTF-8?q?fix(ai-assistant):=20Modal=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=81=A2=E5=A4=8D=E5=B1=85=E4=B8=AD?= =?UTF-8?q?=E5=BC=B9=E6=A1=86=EF=BC=8C=E4=B8=8D=E5=86=8D=E6=B2=89=E6=B5=B8?= =?UTF-8?q?=E5=85=A8=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移动端仅聊天(chat)浮窗保留全屏沉浸,Modal 模式两端统一为居中模态, 回退 f6067d1bd 对 Modal 的移动端全屏处理;删除随之失效的 .ai-assistant-modal .is-mobile-fullscreen 样式块。 --- .../js/components/AIAssistant/index.vue | 25 ------------------- .../js/components/AIAssistant/modal.vue | 3 +-- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/resources/assets/js/components/AIAssistant/index.vue b/resources/assets/js/components/AIAssistant/index.vue index f72825161..50f89adf6 100644 --- a/resources/assets/js/components/AIAssistant/index.vue +++ b/resources/assets/js/components/AIAssistant/index.vue @@ -3475,31 +3475,6 @@ export default { max-height: calc(var(--window-height) - var(--status-bar-height) - var(--navigation-bar-height) - 136px); } } - - // 移动端 fullscreen Modal:参考全局搜索,顶部留 status-bar + 46px,顶部圆角 - &.is-mobile-fullscreen { - .ivu-modal-content { - margin-top: calc(var(--status-bar-height, 0px) + 46px); - margin-bottom: 0; - border-top-left-radius: 18px !important; - border-top-right-radius: 18px !important; - } - .ivu-modal-body { - display: flex; - flex-direction: column; - } - .ai-assistant-header { - margin-right: 24px; - } - .ai-assistant-content { - flex: 1; - min-height: 0; - max-height: none; - } - .ai-assistant-input { - padding-bottom: calc(12px + var(--navigation-bar-height, 0px)); - } - } } body.window-portrait { diff --git a/resources/assets/js/components/AIAssistant/modal.vue b/resources/assets/js/components/AIAssistant/modal.vue index 4aa81ac11..e7a898896 100644 --- a/resources/assets/js/components/AIAssistant/modal.vue +++ b/resources/assets/js/components/AIAssistant/modal.vue @@ -58,10 +58,9 @@ v-else v-model="visible" :width="shouldCreateNewSession ? '440px' : '600px'" - :fullscreen="isMobile" :mask-closable="false" :footer-hide="true" - :class-name="isMobile ? 'ai-assistant-modal is-mobile-fullscreen' : 'ai-assistant-modal'"> + class-name="ai-assistant-modal">