工作流工具栏:窄屏收起改名图标。768 宽、失败的运行加未保存加两枚芯片时,顶栏最右的控件伸到 791px、出了视口(main 上 3c5c9d3c 给名字旁边加的那枚铅笔)。照其它次要按钮的做法在窄于 880px 的容器里收起来,改名在「切换工作流」的列表里照样有。check-studio 加两条:窄屏工具栏上看不到它、列表里有

This commit is contained in:
ThearchyHelios
2026-10-21 16:08:55 +00:00
parent 41f64172c3
commit 74ab9d57f2
2 changed files with 12 additions and 2 deletions
+4 -2
View File
@@ -527,9 +527,11 @@ export function StudioPage() {
<span className="max-w-56 truncate font-medium @max-[1120px]:max-w-32">{workflow?.name ?? '选择工作流'}</span>
<ChevronDown size={12} className="shrink-0 text-faint" />
</button>
{/* 改名只改名字,画布上没保存的改动不受影响;内置模板不给改名(见 renameWorkflow) */}
{/* 改名只改名字,画布上没保存的改动不受影响;内置模板不给改名(见 renameWorkflow)。
窄屏收起来:工具栏挤不下,改名在「切换工作流」的列表里照样有 */}
{workflow && !workflow.is_template && (
<IconButton label={`重命名「${workflow.name}」`} title="重命名" className="-ml-1 shrink-0 text-faint hover:text-dim"
<IconButton label={`重命名「${workflow.name}」`} title="重命名"
className="-ml-1 shrink-0 text-faint hover:text-dim @max-[880px]:hidden"
onClick={() => void renameWorkflow(workflow, refresh)} icon={<Pencil size={12} />} />
)}