fixed height issue, fixed code for grouping in diagram

This commit is contained in:
sara-pervana
2024-01-16 21:21:20 +01:00
committed by Sara Pervana
parent 9f03c187f3
commit 13de134bb0
6 changed files with 45 additions and 49 deletions

View File

@@ -154,6 +154,8 @@ export default function Client({
setSnackbarOpen(false);
};
console.log("entity", entity);
if (services_loading) return <Skeleton height={500} />;
if (!services) return <Alert severity="error">Client not found</Alert>;
@@ -193,7 +195,7 @@ export default function Client({
IP: <code>{entity?.ip}</code>
</Typography>
<Typography color="text.primary" gutterBottom>
Network: <code>{entity?.other?.network}</code>
Network: <code>{entity?.network}</code>
</Typography>
</CardContent>
</Card>

View File

@@ -6,6 +6,7 @@ import {
CssBaseline,
IconButton,
ThemeProvider,
Tooltip,
useMediaQuery,
} from "@mui/material";
import { StyledEngineProvider } from "@mui/material/styles";
@@ -84,13 +85,15 @@ export default function RootLayout({
>
<div className="grid grid-cols-3">
<div className="col-span-1">
<IconButton
style={{ padding: "12px" }}
hidden={true}
onClick={() => setShowSidebar((c) => !c)}
>
{!showSidebar && <MenuIcon />}
</IconButton>
<Tooltip placement="right" title="Expand Sidebar">
<IconButton
style={{ padding: "12px" }}
hidden={true}
onClick={() => setShowSidebar((c) => !c)}
>
{!showSidebar && <MenuIcon />}
</IconButton>
</Tooltip>
</div>
</div>