feat: integrate TitleBar into App layout
This commit is contained in:
+9
-1
@@ -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,7 +30,12 @@ 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">
|
||||||
|
{/* Custom title bar — sits at the very top */}
|
||||||
|
<TitleBar />
|
||||||
|
|
||||||
|
{/* Main app content below the title bar */}
|
||||||
|
<div className="flex flex-1 min-h-0">
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<main className="flex-1 flex flex-col min-w-0">
|
<main className="flex-1 flex flex-col min-w-0">
|
||||||
{activeView === "explore" ? (
|
{activeView === "explore" ? (
|
||||||
@@ -45,6 +51,8 @@ export default function App() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</main>
|
</main>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Lightbox />
|
<Lightbox />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user