From 4fe0ee473aa1f02555bf37975bcbb5fccd12350d Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Wed, 26 Nov 2025 23:50:57 +0800 Subject: [PATCH] feat: improve mobile overlays and focus panel --- static/icons/align-left.svg | 3 + static/icons/chat-bubble.svg | 5 + static/icons/copy.svg | 1 + static/mobile-overlay-demo.html | 341 ++++++++++++++ static/mobile-overlay-fab.html | 437 ++++++++++++++++++ static/src/App.vue | 130 +++++- static/src/app.ts | 123 ++++- static/src/components/panels/FocusPanel.vue | 15 + .../sidebar/ConversationSidebar.vue | 16 +- static/src/stores/ui.ts | 28 +- .../styles/components/chat/_chat-area.scss | 26 +- .../styles/components/overlays/_overlays.scss | 228 +++++++++ .../components/panels/_focus-panel.scss | 50 +- 13 files changed, 1377 insertions(+), 26 deletions(-) create mode 100644 static/icons/align-left.svg create mode 100644 static/icons/chat-bubble.svg create mode 100644 static/icons/copy.svg create mode 100644 static/mobile-overlay-demo.html create mode 100644 static/mobile-overlay-fab.html diff --git a/static/icons/align-left.svg b/static/icons/align-left.svg new file mode 100644 index 0000000..b779e07 --- /dev/null +++ b/static/icons/align-left.svg @@ -0,0 +1,3 @@ + diff --git a/static/icons/chat-bubble.svg b/static/icons/chat-bubble.svg new file mode 100644 index 0000000..7026581 --- /dev/null +++ b/static/icons/chat-bubble.svg @@ -0,0 +1,5 @@ + diff --git a/static/icons/copy.svg b/static/icons/copy.svg new file mode 100644 index 0000000..75c8d63 --- /dev/null +++ b/static/icons/copy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/mobile-overlay-demo.html b/static/mobile-overlay-demo.html new file mode 100644 index 0000000..95a3c29 --- /dev/null +++ b/static/mobile-overlay-demo.html @@ -0,0 +1,341 @@ + + +
+ + +新建对话 · 搜索 · 会话列表
+#1234 需求讨论 · 刚刚
+#1227 UI 迭代 · 1 小时前
+已连接 · 思考模式
+/src/App.vue
+/stores/ui.ts
+1. 完成移动端布局
+2. 录制演示
+#05 构建状态 · 运行中
+...main-container / panel 切换逻辑...
+...isMobileViewport · activeMobileSheet...
+...overlay 动画与遮罩...
+用于创建新的任务空间
+#1243 Bug 跟踪 · 刚刚
+#1235 UI 迭代 · 30 分钟前
+思考模式 · 已连接
+/src/App.vue
+/stores/ui.ts
+1. 适配移动端布局
+2. 补充交互说明
+#07 日志总结 · 进行中
+移动端 Teleport 逻辑
+activeMobileSheet 状态
+半覆盖动画与遮罩
+