From d645c00dd8e0543db13fbf907b13f1c70687e18e Mon Sep 17 00:00:00 2001 From: kicer Date: Tue, 1 Sep 2026 22:25:17 +0800 Subject: [PATCH] =?UTF-8?q?2.0=E9=98=B6=E6=AE=B55=E8=B0=83=E6=95=B43:=20?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A0=87=E9=A2=98=E5=8E=BB=E5=9B=BE=E6=A0=87?= =?UTF-8?q?;=E6=8A=80=E8=83=BD=E6=94=B9=E5=90=8D/=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=A7=BB=E8=87=B3=E5=88=97=E8=A1=A8=E5=8D=A1=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?;=E8=AF=A6=E6=83=85=E9=A1=B5=E9=A1=B6=E6=A0=8F=E4=BB=85?= =?UTF-8?q?=E7=95=99=E4=B8=8A=E4=BC=A0,=E6=96=B0=E5=BB=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=94=B9=E4=B8=BA=E5=88=97=E8=A1=A8=E4=B8=8B=E6=8C=89?= =?UTF-8?q?=E9=92=AE,=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8=E7=99=BD?= =?UTF-8?q?=E5=8D=A1+=E5=9B=BE=E6=A0=87+=E8=83=B6=E5=9B=8A=E7=BE=8E?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/css/style.css | 34 +++++++++++++----- app/server/public/index.html | 26 ++++---------- app/server/public/js/skills.js | 62 +++++++++++++++++++-------------- 3 files changed, 67 insertions(+), 55 deletions(-) diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css index 44934d9..a25917e 100644 --- a/app/server/public/css/style.css +++ b/app/server/public/css/style.css @@ -31,14 +31,6 @@ body { } .header-left { display: flex; align-items: center; gap: 8px; flex: 1; } .header h2 { font-size: 17px; font-weight: 600; white-space: nowrap; } -.brand { - display: inline-flex; - align-items: center; - gap: 8px; - cursor: default; - padding: 4px 8px; - border-radius: 6px; -} .chat-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -346,6 +338,32 @@ body { font-size: 12px; color: #888; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } +/* 列表卡右侧操作钮 */ +.card-acts { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; } +.card-act { + background: #eef3fc; color: #2a5299; border: none; border-radius: 8px; + font-size: 12px; padding: 5px 10px; cursor: pointer; +} +.card-act.del { background: #fdecea; color: #c0392b; } +.card-act:active { opacity: 0.7; } +/* 技能详情文件列表:白卡包裹 + 行图标/胶囊 */ +.skill-files { + background: #fff; border-radius: 12px; padding: 6px 8px; + box-shadow: 0 1px 4px rgba(30,40,90,0.06); +} +.skill-files .file-row { cursor: pointer; border-bottom: 1px dashed #eef0f5; } +.skill-files .file-row:last-child { border-bottom: none; } +.skill-files .file-ico { + width: 16px; height: 16px; flex-shrink: 0; + stroke: #7f8db0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; +} +.skill-files .file-name { color: #223; font-weight: 500; } +.skill-files .file-size { + background: #f2f3f7; color: #8a93a6; font-size: 11px; + padding: 2px 8px; border-radius: 9px; flex-shrink: 0; +} +.skill-files .file-act { background: #eef3fc; border-radius: 7px; padding: 4px 9px; flex-shrink: 0; } +.skill-files .file-act.del { background: #fdecea; color: #c0392b; } /* 代码/配置编辑器:全屏覆盖所在 Tab(盖住列表/详情与顶栏,不遮底部导航) */ #skill-editor, #cfg-editor { position: absolute; inset: 0; z-index: 6; background: #f2f3f7; diff --git a/app/server/public/index.html b/app/server/public/index.html index 0ec721c..4bb97f2 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -16,12 +16,7 @@