perf(canvas): 画布媒体 - 优化媒体加载、播放器与节点交互 (#357)
Merge origin/main at fb089b2 and retain canvas media performance, player layout, and interaction updates.
Co-authored-by: ddCat <2695092045@qq.com>
This commit is contained in:
14
web/test/canvas-node-title-interaction.test.ts
Normal file
14
web/test/canvas-node-title-interaction.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
import { describe, expect, test } from "bun:test";
|
||||
|
||||
const canvasStylesSource = readFileSync(resolve(import.meta.dir, "../src/styles/globals.css"), "utf8");
|
||||
|
||||
describe("canvas node title interaction", () => {
|
||||
test("keeps the toolbar hover bridge from intercepting the external title", () => {
|
||||
const hoverBridge = canvasStylesSource.match(/\.canvas-node-toolbar::after\s*\{([\s\S]*?)\}/)?.[1] || "";
|
||||
|
||||
expect(hoverBridge).toContain("pointer-events: none;");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user