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:
wurendao007
2026-08-31 09:00:37 +08:00
committed by GitHub
parent 21facff923
commit 8ebceecbb6
58 changed files with 2662 additions and 207 deletions

View File

@@ -192,7 +192,7 @@ test("Canvas task surfaces route Dreamina uncertainty through shared display sem
test("Canvas fullscreen video restores large controls instead of keeping the compact node layout", async () => {
const playerCSS = await Bun.file(new URL("../src/components/video-player.css", import.meta.url)).text();
expect(playerCSS).toContain(".canvas-video-player-compact:not([data-fullscreen])");
expect(playerCSS).toContain('.canvas-video-player[data-player-variant="compact"]:not([data-fullscreen])');
expect(playerCSS).toContain("--media-fullscreen-button-size: 60px");
expect(playerCSS).toContain("--media-slider-track-height: 8px");
expect(playerCSS).toContain("min-height: 64px");