diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-04-17 00:15:26 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-04-17 00:15:26 -0700 |
| commit | 565c9413f9e9b800569ad1775605bdb56b49188f (patch) | |
| tree | 6daad38f9663155f2271218bc249f45104db199b | |
| parent | 9878af2e31c5d087711b4c62a6e2bd8a4235fb16 (diff) | |
type: move BackgroundVideo outside GameArea
| -rw-r--r-- | src/app/game/page.tsx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/app/game/page.tsx b/src/app/game/page.tsx index dc0d93d..10b3d5d 100644 --- a/src/app/game/page.tsx +++ b/src/app/game/page.tsx @@ -507,6 +507,15 @@ function GameInner() { {!isVideo && ( <audio ref={audioRef} src={audioUrl || undefined} preload="auto" /> )} + {isVideo && ( + <BackgroundVideo + ref={videoRef} + src={audioUrl || undefined} + preload="auto" + playsInline + style={{ opacity: backgroundOpacity / 100 }} + /> + )} <GameNavbar style={{ justifyContent: "space-between" }}> <div style={{ display: "flex", alignItems: "center", gap: 16 }}> <Link @@ -684,15 +693,6 @@ function GameInner() { </HUD> <GameArea> - {isVideo && ( - <BackgroundVideo - ref={videoRef} - src={audioUrl || undefined} - preload="auto" - playsInline - style={{ opacity: backgroundOpacity / 100 }} - /> - )} {phase === "playing" && g.displayedLineIdx < 0 && gameLines.length > 0 && ( |
