From cd69172a9927a9a776a16c6f6693b66bfbc875bf Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 16 Jun 2026 22:23:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20AgentAssistantWidg?= =?UTF-8?q?et=20=E7=BB=84=E4=BB=B6=E7=9A=84=E7=A9=BA=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=96=87=E6=9C=AC=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AgentAssistantWidget.vue | 62 ++++++++++++++++------ src/locales/en-US.ts | 3 +- src/locales/zh-CN.ts | 3 +- src/locales/zh-TW.ts | 3 +- src/views/setting/AccountSettingSystem.vue | 2 + 5 files changed, 55 insertions(+), 18 deletions(-) diff --git a/src/components/AgentAssistantWidget.vue b/src/components/AgentAssistantWidget.vue index 361007ca..e87aeddd 100644 --- a/src/components/AgentAssistantWidget.vue +++ b/src/components/AgentAssistantWidget.vue @@ -493,8 +493,11 @@ onScopeDispose(() => {
- -
{{ t('agentAssistant.emptyTitle') }}
+
+ +
+
{{ t('agentAssistant.emptyTitle') }}
+
{{ t('agentAssistant.emptySubtitle') }}
{ .agent-assistant-fab { position: fixed; - z-index: 2100; + z-index: 1000; display: grid; border: 1px solid rgba(var(--v-theme-on-surface), 0.08); border-radius: 999px 0 0 999px; @@ -644,7 +647,7 @@ onScopeDispose(() => { inset-block-start: 50%; inset-inline-end: 0; place-items: center; - transform: translate(1.35rem, -50%); + transform: translate(1rem, -50%); transition: inset-inline-end 0.2s ease, transform 0.18s ease, @@ -724,13 +727,46 @@ onScopeDispose(() => { } .agent-assistant-empty { - display: grid; - color: rgba(var(--v-theme-on-surface), 0.58); - min-block-size: 55%; - place-content: center; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + color: rgba(var(--v-theme-on-surface), 0.7); + min-block-size: 100%; + padding-block: 2rem 1.25rem; + padding-inline: 0.25rem; text-align: center; } +.agent-assistant-empty__mark { + display: inline-flex; + align-items: center; + justify-content: center; + border: 1px solid rgba(var(--v-theme-primary), 0.18); + border-radius: 8px; + background: rgba(var(--v-theme-primary), 0.1); + block-size: 3.75rem; + box-shadow: inset 0 1px 0 rgba(var(--v-theme-on-primary), 0.1); + color: rgb(var(--v-theme-primary)); + inline-size: 3.75rem; + margin-block-end: 1rem; +} + +.agent-assistant-empty__title { + color: rgba(var(--v-theme-on-surface), 0.9); + font-size: 1.1rem; + font-weight: 700; + line-height: 1.35; +} + +.agent-assistant-empty__subtitle { + color: rgba(var(--v-theme-on-surface), 0.58); + font-size: 0.86rem; + line-height: 1.55; + margin-block-start: 0.4rem; + max-inline-size: 21rem; +} + .agent-assistant-message { display: flex; flex-direction: column; @@ -1013,13 +1049,9 @@ onScopeDispose(() => { } @media (width <= 600px) { - .agent-assistant-fab { - inset-block: auto max(5rem, calc(env(safe-area-inset-bottom, 0px) + 5rem)); - transform: translateX(1.35rem); - } - - .agent-assistant-fab:hover { - transform: translateX(0); + .agent-assistant-empty { + justify-content: flex-start; + padding-block-start: 2.75rem; } .agent-assistant-messages { diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index e3f085d9..494bd367 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -703,7 +703,8 @@ export default { ready: 'Ready', thinking: 'Thinking', newChat: 'New Chat', - emptyTitle: 'Ask about sites, subscriptions, downloads, or organization tasks', + emptyTitle: 'What should we handle today?', + emptySubtitle: 'Ask about sites, subscriptions, downloads, or organization tasks.', placeholder: 'Ask MoviePilot...', stop: 'Stop generating', download: 'Download', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 0a442c7b..8d471482 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -699,7 +699,8 @@ export default { ready: '随时待命', thinking: '思考中', newChat: '新会话', - emptyTitle: '可以直接询问站点、订阅、下载和整理任务', + emptyTitle: '今天想处理什么?', + emptySubtitle: '站点、订阅、下载、整理任务,都可以直接问我。', placeholder: '询问 MoviePilot...', stop: '停止生成', download: '下载', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index 78870417..5260ec6e 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -699,7 +699,8 @@ export default { ready: '隨時待命', thinking: '思考中', newChat: '新會話', - emptyTitle: '可以直接詢問站點、訂閱、下載和整理任務', + emptyTitle: '今天想處理什麼?', + emptySubtitle: '站點、訂閱、下載、整理任務,都可以直接問我。', placeholder: '詢問 MoviePilot...', stop: '停止生成', download: '下載', diff --git a/src/views/setting/AccountSettingSystem.vue b/src/views/setting/AccountSettingSystem.vue index 89e5f6ab..fc3ca323 100644 --- a/src/views/setting/AccountSettingSystem.vue +++ b/src/views/setting/AccountSettingSystem.vue @@ -2,6 +2,7 @@