Ver código fonte

删 how 工序表里重复的提示词按钮(与顶部 ribbon 重复)

HowTable 两个分组表头(②拆框架+轻标签 / ③作用域)原本点击会开提示词弹窗,
与顶部 ribbon「拆出知识 / 给知识归类」打开的是同一弹窗(onPrompt frame/scope)——重复。
改成纯文本表头(去 onClick + ▸提示词 + cursor:pointer/hover)。提示词入口统一收归顶部那排。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
SamLee 4 semanas atrás
pai
commit
452ddbc1d6
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      web/index.html

+ 4 - 4
web/index.html

@@ -78,8 +78,8 @@
   th.c-dir,td.dir{min-width:230px;max-width:330px;white-space:pre-wrap;word-break:break-word;background:#ecfeff}
   th.c-out,td.out{min-width:160px;max-width:240px;white-space:pre-wrap;background:#ecfeff}
   th.c-scope,td.scope{width:92px;min-width:92px;max-width:92px;word-break:break-word}
-  th.g-frame{background:#0e7490;color:#fff;cursor:pointer}th.g-frame:hover{background:#155e75}
-  th.g-scope{background:#7c3aed;color:#fff;cursor:pointer}th.g-scope:hover{background:#6d28d9}
+  th.g-frame{background:#0e7490;color:#fff}
+  th.g-scope{background:#7c3aed;color:#fff}
   th.c-idx{background:#475569;color:#fff;vertical-align:middle}
   thead tr:nth-child(2) th.c-intent,thead tr:nth-child(2) th.c-cstage,thead tr:nth-child(2) th.c-act,thead tr:nth-child(2) th.c-dir,thead tr:nth-child(2) th.c-out{background:#0891b2;color:#fff}
   thead tr:nth-child(2) th.s-substance{background:#dc2626;color:#fff}thead tr:nth-child(2) th.s-form{background:#2563eb;color:#fff}
@@ -282,8 +282,8 @@ function HowTable({k,onScope,onPrompt,onSource}){
   return <div className="twrap"><table className="proc">
     <thead>
       <tr><th className="c-idx" rowSpan="2">#</th>
-        <th className="g-frame" colSpan="5" onClick={()=>onPrompt("frame")}>② 拆框架 + 轻标签 ▸ 提示词</th>
-        <th className="g-scope" colSpan="5" onClick={()=>onPrompt("scope")}>③ 作用域 ▸ 提示词</th></tr>
+        <th className="g-frame" colSpan="5">② 拆框架 + 轻标签</th>
+        <th className="g-scope" colSpan="5">③ 作用域</th></tr>
       <tr><th className="c-intent">输入</th><th className="c-cstage">创作<br/>阶段</th><th className="c-act">动作</th><th className="c-dir">方法</th><th className="c-out">产出</th>
         {SCOPES.map(([kk,cn])=><th key={kk} className={"c-scope s-"+kk}>{cn}</th>)}</tr>
     </thead>