From da12ed0bbb4ac917f58fba737b83831515ed935d Mon Sep 17 00:00:00 2001 From: kang Date: Thu, 21 May 2026 02:19:55 +0800 Subject: [PATCH] auto-save 2026-05-21 02:19 (~2) --- .memory/worklog.json | 7 +++++ src/components/PackPanel.tsx | 54 ++++++++++++++++++++---------------- 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/.memory/worklog.json b/.memory/worklog.json index 224d3b3..43c2b0f 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -1867,6 +1867,13 @@ "message": "auto-save 2026-05-20 23:53 (~2)", "hash": "e85be86", "files_changed": 2 + }, + { + "ts": "2026-05-21T02:09:03+08:00", + "type": "commit", + "message": "auto-save 2026-05-21 02:09 (~5)", + "hash": "fa6e32b", + "files_changed": 5 } ] } diff --git a/src/components/PackPanel.tsx b/src/components/PackPanel.tsx index c810460..f7a7ddd 100644 --- a/src/components/PackPanel.tsx +++ b/src/components/PackPanel.tsx @@ -310,30 +310,42 @@ function TextTemplateSection({ -
+
{TEXT_TEMPLATES.map(template => { const isOpen = showPromptId === template.id; const asset = byTemplate.get(template.id); return ( -
-
- text - {template.outputFormat} -
-
-
- {template.title} +
+
+
+
+ {template.title} + {template.required && 必备} +
+

{template.description}

+
+
{template.kind} - {template.required && 必备} + {template.outputFormat}
-

{template.description}

- {asset && ( -
+              
+
+ {asset ? ( +
                     {asset.content}
                   
+ ) : ( +
+ 待生成文字 +
)} +
+
+ + {asset ? '完成' : '待生成'} + - {isOpen && ( -
-                    {template.promptTemplate}
-                  
- )} -
-
- {template.outputFormat} - - {asset ? '完成' : '待生成'} -
+ {isOpen && ( +
+                  {template.promptTemplate}
+                
+ )}
); })}