From 7388e79b09597e60aaf524e2b8e6be489c190f78 Mon Sep 17 00:00:00 2001 From: yourname Date: Sun, 29 Mar 2026 03:34:34 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=94=B9=E8=BF=9B=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=B1=95=E7=A4=BA=E6=96=B9=E5=BC=8F=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E6=A8=A1=E6=80=81=E6=A1=86=E7=9B=B4=E6=8E=A5=E5=9C=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=AD=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除模态框方案,改为直接在页面中展开文档 - 文档点击后直接在页面下方显示,无需弹窗 - 简化用户交互,提升使用体验 - 更新技能文件,明确前端渲染方案 Co-Authored-By: Claude Sonnet 4.6 --- prototype/docs-index.html | 78 ++++++++++++++----------------- prototype/index.html | 96 ++++++++++++++++++--------------------- 2 files changed, 77 insertions(+), 97 deletions(-) diff --git a/prototype/docs-index.html b/prototype/docs-index.html index 6fe5522..593fdb2 100644 --- a/prototype/docs-index.html +++ b/prototype/docs-index.html @@ -23,9 +23,16 @@ .stat-item { background: linear-gradient(135deg, var(--primary-blue), #40a9ff); } - .markdown-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; } - .markdown-modal.active { display: flex; } - .markdown-content { flex: 1; overflow-y: auto; background: white; max-width: 1200px; margin: 2rem; padding: 2rem; border-radius: 0.5rem; } + .doc-content { + margin-top: 1rem; + padding: 2rem; + background: white; + border-radius: 0.5rem; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); + } + .doc-content.hidden { + display: none; + } .markdown-body h1, .markdown-body h2 { border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5em; margin-bottom: 1em; } .markdown-body pre { background: #1f2937; color: #e5e7eb; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; } .markdown-body code { background: #f3f4f6; padding: 0.2em 0.4em; border-radius: 0.25rem; } @@ -148,10 +155,11 @@ 技术架构 数据模型 - + 查看文档 + @@ -194,10 +202,11 @@ 色彩系统 无障碍 - + 查看文档 + @@ -240,10 +249,11 @@ 任务制定 AI抽背 - + 查看文档 + @@ -328,37 +338,25 @@ - -
-
-
-

- -
-
-
- -

正在加载文档...

-
- - -
-
-
diff --git a/prototype/index.html b/prototype/index.html index cec140d..ebb7b17 100644 --- a/prototype/index.html +++ b/prototype/index.html @@ -34,17 +34,6 @@ border-radius: 16px; font-size: 28px; } - .markdown-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; } - .markdown-modal.active { display: flex; } - .markdown-content { flex: 1; overflow-y: auto; background: white; max-width: 1200px; margin: 2rem; padding: 2rem; border-radius: 0.5rem; } - .markdown-body h1, .markdown-body h2 { border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5em; margin-bottom: 1em; } - .markdown-body pre { background: #1f2937; color: #e5e7eb; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; } - .markdown-body code { background: #f3f4f6; padding: 0.2em 0.4em; border-radius: 0.25rem; } - .markdown-body table { border-collapse: collapse; width: 100%; } - .markdown-body table th, .markdown-body table td { border: 1px solid #e5e7eb; padding: 0.5rem; } - .markdown-body table tr:nth-child(even) { background: #f9fafb; } - .markdown-body blockquote { border-left: 4px solid #3b82f6; padding-left: 1rem; color: #6b7280; } - .markdown-body a { color: #2563eb; } @@ -306,10 +295,10 @@ 基于 PRD 和 UX 设计规范自动生成 | 2026-03-28 @@ -317,59 +306,60 @@ - -
-
-
-

- -
-
-
- -

正在加载文档...

-
- - -
-
-
+ + + + + +