mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Two fixes for the regression that left the TopBar and tab switcher invisible after the Stage3D migration: 1. index.tsx still rendered <PageScene /> directly under BrowserRouter, so the entire MainApp shell (TopBar, LoginModal, Toaster, modals, universal Tauri event listeners) was bypassed and the 3D editor appeared as the default and only view. Routes (_index.tsx, $sceneToken.tsx) had been updated to mount MainApp; the bootstrap entry was missed. 2. MainApp.TabBody returned each page component directly. Pages like PageDraw return a fragment whose top-level child is `position: fixed; inset: 0`; without a wrapping <div> those fixed-positioned children became direct siblings of the TopBar at the MainApp root, escaping their tab slot. Wrap every non-3D case in <div>. The 3D case stays unwrapped because Stage3DBody (lib) already returns a <div> outer wrapper. Default boot view is now the IMAGE (TextToImage) page under a visible TopBar; switching tabs keeps the TopBar fixed and pages render below. Typecheck stays at 47.