From cd83c358cf3d0b0532f380003ae21216f59d72d5 Mon Sep 17 00:00:00 2001 From: km2023 Date: Tue, 30 Jun 2026 15:15:46 +0800 Subject: [PATCH] fix(home): move dialog out of 9:16 canvas so it stays screen-fixed The home dialog used bottom-[15.8%] inside the 9:16 canvas, whose height scales with width (h = w*16/9), so the dialog drifted vertically as viewport width changed. Moved the dialog block to the screen-container layer beside the tab bar, so it now shares the tab's screen-relative anchoring and no longer moves with width. --- vtubermini/src/pages/home-page.tsx | 152 ++++++++++++++--------------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/vtubermini/src/pages/home-page.tsx b/vtubermini/src/pages/home-page.tsx index 065befa..0e683c1 100644 --- a/vtubermini/src/pages/home-page.tsx +++ b/vtubermini/src/pages/home-page.tsx @@ -488,82 +488,6 @@ export function HomePage({ 返回我的保存 ) : null} - {activeDialog ? ( -
- {activeDialog.kind === 'idle' ? ( - - ) : null} -
- - - {activeDialog.text} - -
- {activeDialog.kind === 'idle' ? ( -
- {activeDialog.choices.map((choice) => ( - - ))} -
- ) : null} -
- ) : null} + {activeDialog ? ( +
+ {activeDialog.kind === 'idle' ? ( + + ) : null} +
+ + + {activeDialog.text} + +
+ {activeDialog.kind === 'idle' ? ( +
+ {activeDialog.choices.map((choice) => ( + + ))} +
+ ) : null} +
+ ) : null}
{[{ route: "shop", icon: shopIcon, left: "8.1%" }, { route: "moments", icon: momentsIcon, left: "33.7%" }, { route: "pet", icon: petIcon, left: "56.6%" }, { route: "album", icon: albumIcon, left: "80%" }].map((t) => ())}
)