From 88cae669378565b7612e815196fd3983947a82c5 Mon Sep 17 00:00:00 2001 From: Codebuddy Date: Thu, 3 Sep 2026 15:55:39 +0800 Subject: [PATCH] =?utf8?q?feat:=20=E6=8A=80=E8=83=BD=E4=BE=A7=E6=A0=8F?= =?utf8?q?=E6=94=B9=E4=B8=BA=E5=8F=AF=E6=94=B6=E8=B5=B7=E6=8A=BD=E5=B1=89?= =?utf8?q?=EF=BC=88=E9=BB=98=E8=AE=A4=E6=94=B6=E8=B5=B7=EF=BC=8C=E2=98=B0?= =?utf8?q?=20=E6=89=93=E5=BC=80=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - 技能侧栏默认 sk-collapsed(display:none),任务列表占满整宽 - 顶部工具栏新增「☰ 技能」按钮,点击以覆盖式抽屉滑出,不挤压任务列表 - 支持四种关闭方式:再点 ☰ / 面板右上角 ✕ / 点遮罩 / Esc - 打开时加半透明遮罩,关闭时移除定位 Co-Authored-By: CodeBuddy --- frontend/index.html | 47 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index c8d26a5..9f9b250 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -133,10 +133,28 @@ body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; heigh .paste-drop-hint b { color: #4ecca3; font-weight: 600; } .picker-body { flex: 1; overflow: auto; padding: 28px; } .picker-main { display: flex; flex: 1; min-height: 0; } +/* 技能侧栏:默认收起,点☰以覆盖式抽屉滑出,不挤压任务列表 */ #skills-sidebar { width: 300px; flex-shrink: 0; background: #16213e; border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; padding: 14px; gap: 12px; overflow: auto; } +#skills-sidebar.sk-collapsed { display: none; } +#skills-sidebar.sk-drawer { + position: absolute; top: 0; left: 0; bottom: 0; z-index: 210; + box-shadow: 4px 0 24px rgba(0,0,0,0.45); +} +.picker-main { position: relative; } +#sk-backdrop { + display: none; position: absolute; inset: 0; z-index: 205; background: rgba(0,0,0,0.45); +} +#sk-backdrop.sk-open { display: block; } +#skills-sidebar .ss-close { + position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; + display: flex; align-items: center; justify-content: center; + background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); + border-radius: 6px; color: #ccc; font-size: 14px; line-height: 1; cursor: pointer; +} +#skills-sidebar .ss-close:hover { background: rgba(255,255,255,0.16); color: #fff; } #skills-sidebar .ss-head { color: #74c0fc; font-size: 15px; font-weight: 600; } #skills-sidebar .ss-upload { display: flex; gap: 8px; } #skills-sidebar .ss-upload input[type=file] { flex: 1; min-width: 0; color: #ccc; font-size: 12px; } @@ -309,7 +327,10 @@ body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; heigh
-

任务清单

+
+ +

任务清单

+
@@ -318,7 +339,9 @@ body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; heigh
-