diff --git a/src/components/EdiAssistant/ai-advisor.css b/src/components/EdiAssistant/ai-advisor.css index 1519ece..876a90f 100644 --- a/src/components/EdiAssistant/ai-advisor.css +++ b/src/components/EdiAssistant/ai-advisor.css @@ -146,11 +146,30 @@ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); - justify-content: flex-end; + justify-content: center; + align-items: center; } .ai-advisor-shell--float .ai-app-bar__actions--float-only { + display: inline-flex; + align-items: center; + justify-content: center; margin-left: 0; + gap: 2px; +} + +/* --chat 的上下不对称 padding 会盖掉 float 顶栏,单独拉回居中 */ +.ai-advisor-shell--float.ai-advisor-shell--chat .ai-app-bar--float { + min-height: 0; + height: auto; + padding: 4px; + gap: 0; +} + +.ai-advisor-shell--float .ai-float-icon-btn .arco-icon, +.ai-advisor-shell--float .ai-float-icon-btn svg { + display: block; + margin: 0; } .ai-advisor-shell--float .ai-app-bar--float:active { @@ -2399,23 +2418,27 @@ } .ai-composer-footer--chat { - flex-direction: column; + flex-direction: row; align-items: center; - justify-content: center; - gap: 6px; + justify-content: space-between; + gap: 10px; padding: 8px 4px 2px; } .ai-composer-footer--chat .ai-composer-hint { - order: 2; - text-align: center; + flex: 1; + min-width: 0; + order: 0; + text-align: left; font-size: 0.68rem; opacity: 0.58; line-height: 1.35; } .ai-composer-footer--chat .ai-composer-human-btn { - order: 1; + order: 0; + flex-shrink: 0; + margin-left: auto; gap: 6px; height: 28px; padding: 0 10px; diff --git a/src/views/h5/customer-center/assistant/index.vue b/src/views/h5/customer-center/assistant/index.vue index e27c36a..74c4f59 100644 --- a/src/views/h5/customer-center/assistant/index.vue +++ b/src/views/h5/customer-center/assistant/index.vue @@ -28,7 +28,14 @@