Design Overhaul of Device Details Page

This commit is contained in:
2025-09-28 03:59:24 -06:00
parent b6e3781863
commit 887d6c3596
3 changed files with 418 additions and 122 deletions

View File

@@ -914,9 +914,22 @@ const LOCAL_STORAGE_KEY = "borealis_persistent_state";
</Menu>
</Toolbar>
</AppBar>
<Box sx={{ display: "flex", flexGrow: 1, overflow: "hidden" }}>
<Box sx={{ display: "flex", flexGrow: 1, overflow: "auto", minHeight: 0 }}>
<NavigationSidebar currentPage={currentPage} onNavigate={setCurrentPage} isAdmin={isAdmin} />
<Box sx={{ flexGrow: 1, display: "flex", flexDirection: "column", overflow: "hidden" }}>
<Box
sx={{
flexGrow: 1,
display: 'flex',
flexDirection: 'column',
overflow: 'auto',
minHeight: 0,
// Ensure primary page container (usually a Paper with m:2) fills to the bottom
'& > *': {
alignSelf: 'stretch',
minHeight: 'calc(100% - 32px)' // account for typical m:2 top+bottom margins
}
}}
>
{renderMainContent()}
</Box>
</Box>