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 / 右栏宽」三列栅格, + 少了这块,中间的视角切换会落到左列里去,左对齐而不是居中。 */} +