feat: integrate TitleBar into App layout

This commit is contained in:
2026-04-06 14:08:21 +01:00
parent 7779fe0696
commit 2807240fab
+24 -16
View File
@@ -6,6 +6,7 @@ import { Toolbar } from "./components/Toolbar";
import { Gallery } from "./components/Gallery"; import { Gallery } from "./components/Gallery";
import { Lightbox } from "./components/Lightbox"; import { Lightbox } from "./components/Lightbox";
import { TagCloud } from "./components/TagCloud"; import { TagCloud } from "./components/TagCloud";
import { TitleBar } from "./components/TitleBar";
export default function App() { export default function App() {
const loadFolders = useGalleryStore((state) => state.loadFolders); const loadFolders = useGalleryStore((state) => state.loadFolders);
@@ -29,22 +30,29 @@ export default function App() {
}, []); }, []);
return ( return (
<div className="flex h-screen bg-gray-950 text-white overflow-hidden select-none"> <div className="flex h-screen flex-col bg-gray-950 text-white overflow-hidden select-none">
<Sidebar /> {/* Custom title bar — sits at the very top */}
<main className="flex-1 flex flex-col min-w-0"> <TitleBar />
{activeView === "explore" ? (
<> {/* Main app content below the title bar */}
<BackgroundTasks /> <div className="flex flex-1 min-h-0">
<TagCloud /> <Sidebar />
</> <main className="flex-1 flex flex-col min-w-0">
) : ( {activeView === "explore" ? (
<> <>
<Toolbar /> <BackgroundTasks />
<BackgroundTasks /> <TagCloud />
<Gallery /> </>
</> ) : (
)} <>
</main> <Toolbar />
<BackgroundTasks />
<Gallery />
</>
)}
</main>
</div>
<Lightbox /> <Lightbox />
</div> </div>
); );