From 74ab9d57f22cc23cef39804fb85f1bc7b7cceedd Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Wed, 21 Oct 2026 16:08:55 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=A0=8F=EF=BC=9A=E7=AA=84=E5=B1=8F=E6=94=B6=E8=B5=B7=E6=94=B9?= =?UTF-8?q?=E5=90=8D=E5=9B=BE=E6=A0=87=E3=80=82768=20=E5=AE=BD=E3=80=81?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E8=BF=90=E8=A1=8C=E5=8A=A0=E6=9C=AA?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=8A=A0=E4=B8=A4=E6=9E=9A=E8=8A=AF=E7=89=87?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=A1=B6=E6=A0=8F=E6=9C=80=E5=8F=B3=E7=9A=84?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E4=BC=B8=E5=88=B0=20791px=E3=80=81=E5=87=BA?= =?UTF-8?q?=E4=BA=86=E8=A7=86=E5=8F=A3=EF=BC=88main=20=E4=B8=8A=203c5c9d3c?= =?UTF-8?q?=20=E7=BB=99=E5=90=8D=E5=AD=97=E6=97=81=E8=BE=B9=E5=8A=A0?= =?UTF-8?q?=E7=9A=84=E9=82=A3=E6=9E=9A=E9=93=85=E7=AC=94=EF=BC=89=E3=80=82?= =?UTF-8?q?=E7=85=A7=E5=85=B6=E5=AE=83=E6=AC=A1=E8=A6=81=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=9A=84=E5=81=9A=E6=B3=95=E5=9C=A8=E7=AA=84=E4=BA=8E=20880px?= =?UTF-8?q?=20=E7=9A=84=E5=AE=B9=E5=99=A8=E9=87=8C=E6=94=B6=E8=B5=B7?= =?UTF-8?q?=E6=9D=A5=EF=BC=8C=E6=94=B9=E5=90=8D=E5=9C=A8=E3=80=8C=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=B7=A5=E4=BD=9C=E6=B5=81=E3=80=8D=E7=9A=84=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=87=8C=E7=85=A7=E6=A0=B7=E6=9C=89=E3=80=82check-stu?= =?UTF-8?q?dio=20=E5=8A=A0=E4=B8=A4=E6=9D=A1=EF=BC=9A=E7=AA=84=E5=B1=8F?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=A0=8F=E4=B8=8A=E7=9C=8B=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E5=AE=83=E3=80=81=E5=88=97=E8=A1=A8=E9=87=8C=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/StudioPage.tsx | 6 ++++-- scripts/check-studio.mjs | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/StudioPage.tsx b/frontend/src/pages/StudioPage.tsx index 67c99ffc..948275af 100644 --- a/frontend/src/pages/StudioPage.tsx +++ b/frontend/src/pages/StudioPage.tsx @@ -527,9 +527,11 @@ export function StudioPage() { {workflow?.name ?? '选择工作流'} - {/* 改名只改名字,画布上没保存的改动不受影响;内置模板不给改名(见 renameWorkflow) */} + {/* 改名只改名字,画布上没保存的改动不受影响;内置模板不给改名(见 renameWorkflow)。 + 窄屏收起来:工具栏挤不下,改名在「切换工作流」的列表里照样有 */} {workflow && !workflow.is_template && ( - void renameWorkflow(workflow, refresh)} icon={} /> )} diff --git a/scripts/check-studio.mjs b/scripts/check-studio.mjs index 843e4008..074d9845 100644 --- a/scripts/check-studio.mjs +++ b/scripts/check-studio.mjs @@ -846,6 +846,14 @@ await section('窄屏:次要按钮收进「更多」、助手栏默认收起 check('768 宽:最右的控件也在视口里、工具栏不溢出', bar.right <= bar.vw && bar.sw <= bar.cw, JSON.stringify({ right: bar.right, vw: bar.vw, sw: bar.sw, cw: bar.cw })) check('768 宽:运行和收起助手栏都露在外面', bar.names.includes('运行') && bar.names.some((n) => n.includes('助手栏')), bar.names.join(' ')) + // 改名那个小铅笔收起来了(768 宽挤不下):改名还在「切换工作流」的列表里 + check('768 宽:工具栏上看不到改名的图标(挤不下)', !bar.names.some((n) => n.includes('重命名')), bar.names.join(' ')) + await page.locator('button[title^="切换、新建"]').click() + await page.waitForTimeout(250) + check('……改名在「切换工作流」的列表里照样有', await count(page, '[role="listbox"][aria-label="工作流"] [aria-label^="重命名"]') > 0) + await page.keyboard.press('Escape') + await page.waitForTimeout(200) + const more = page.getByRole('button', { name: '更多操作' }) check('窄屏把次要按钮收进「更多操作」', await more.count() === 1 && await more.isVisible()) await more.click()