From 07d9e5e798e35bc09d58737713e53f318fd7818e Mon Sep 17 00:00:00 2001 From: TongTongStudio Date: Mon, 21 Sep 2026 00:04:25 +0800 Subject: [PATCH] =?UTF-8?q?perf(editor):=20=E4=BC=98=E5=8C=96=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=A4=B4=E6=8B=96=E5=8A=A8=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.test.tsx | 2 +- src/App.tsx | 6 +- src/editor/canvas/LensMonitor.tsx | 128 +++++++++++++++++++--------- src/editor/canvas/viewportBokeh.tsx | 12 ++- src/editor/panels/TimelinePanel.tsx | 39 ++++++++- src/styles/index.css | 7 -- src/styles/index.css.test.ts | 3 +- 7 files changed, 141 insertions(+), 56 deletions(-) diff --git a/src/App.test.tsx b/src/App.test.tsx index 42832d5..673de04 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -20,7 +20,7 @@ beforeEach(() => { it("renders the director desk header and view mode switch", () => { const { container } = render(); - expect(screen.getByText("3D导演台")).toBeInTheDocument(); + expect(screen.queryByText("3D导演台")).not.toBeInTheDocument(); expect(screen.getByRole("button", { name: "导演视角" })).toBeInTheDocument(); expect(screen.getByRole("button", { name: "机位视角" })).toBeInTheDocument(); expect(container.querySelector(".top-bar-center .mode-toggle")).toBeInTheDocument(); diff --git a/src/App.tsx b/src/App.tsx index f274d13..182637f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -79,9 +79,9 @@ export default function App() { return (
-
-

3D导演台

-
+ {/* 占位:顶栏是「左栏宽 / 中间 1fr / 右栏宽」三列栅格, + 少了这块,中间的视角切换会落到左列里去,左对齐而不是居中。 */} +