Made NavBar Still

This commit is contained in:
singh-kanwarpreet committed 2025-08-13 14:47:09 +05:30
1 parent f2e2d5c2ed
commit 480ba034ce
1 file changed
+22 -1
+22 -1
View File
@@ -23,8 +23,24 @@ const Logs = () => {
}; };
const BREADCRUMBS = [{ name: t("logsPage.title"), path: "/logs" }]; const BREADCRUMBS = [{ name: t("logsPage.title"), path: "/logs" }];
// Height of the header (Breadcrumbs + Tabs)
const HEADER_HEIGHT = theme.spacing(25);
return ( return (
<Stack gap={theme.spacing(20)}> <>
<Stack
gap={theme.spacing(20)}
sx={{
position: "sticky",
top: 0,
left: 0,
right: 0,
zIndex: 1000,
backgroundColor: theme.palette.primary.main,
paddingY: theme.spacing(2),
}}
>
<Breadcrumbs list={BREADCRUMBS} /> <Breadcrumbs list={BREADCRUMBS} />
<Tabs <Tabs
value={value} value={value}
@@ -34,10 +50,15 @@ const Logs = () => {
<Tab label={t("logsPage.tabs.queue")} /> <Tab label={t("logsPage.tabs.queue")} />
<Tab label={t("logsPage.tabs.diagnostics")} /> <Tab label={t("logsPage.tabs.diagnostics")} />
</Tabs> </Tabs>
</Stack>
{/* Main content below fixed header */}
<Stack sx={{ paddingTop: HEADER_HEIGHT }}>
{value === 0 && <LogsComponent />} {value === 0 && <LogsComponent />}
{value === 1 && <Queue />} {value === 1 && <Queue />}
{value === 2 && <Diagnostics />} {value === 2 && <Diagnostics />}
</Stack> </Stack>
</>
); );
}; };