Skip to content

Commit

Permalink
Fix menu bar
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Oertel <[email protected]>
  • Loading branch information
fudler committed Jan 19, 2024
1 parent c020e44 commit 5f4d41f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 58 deletions.
103 changes: 51 additions & 52 deletions new/src/components/ScenarioOverview/ScenarioOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Breadcrumbs,
Button,
Divider,
//Drawer,
Drawer,
Grid,
Link,
List,
Expand Down Expand Up @@ -44,14 +44,13 @@ interface Headers {
belowHeader?: string;
}

// const StyledDrawer = styled(Drawer)({
// width: 240,
// flexShrink: 0,
// '& .MuiDrawer-paper': {
// width: 240,
// backgroundColor: "rgba(250,250,250,255)"
// },
// });
const StyledDrawer = styled(Drawer)({
// width: 240,
flexShrink: 0,
'& .MuiDrawer-paper': {
backgroundColor: "rgba(250,250,250,255)"
},
});

const Content = styled('div')(({ theme }) => ({
flexGrow: 1,
Expand Down Expand Up @@ -88,49 +87,49 @@ export function ScenarioOverview(props: ScenarioOverviewProps) {
);
}

// export function MenuBar() {
// return(
// <StyledDrawer variant="permanent">
// <List>
// <ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
// <ListItemText primary={<Typography variant="h6">SUMMARY</Typography>} />
// </ListItem>
// <List>
// <ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
// <ListItemText primary={
// <Link href="http://localhost:3000" underline="none" sx={{ color: 'inherit' }}>
// All Scenarios
// </Link>}
// />
// </ListItem>
// <ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
// <ListItemText primary={
// <Link href="http://localhost:3000" underline="none" sx={{ color: 'inherit' }}>
// Failed Scenarios
// </Link>}
// />
// </ListItem>
// <ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
// <ListItemText primary={
// <Link href="http://localhost:3000" underline="none" sx={{ color: 'inherit' }}>
// Pending Scenarios
// </Link>}
// />
// </ListItem>
// </List>
// <ListItem>
// <ListItemText primary={<Typography variant="h6">TAGS</Typography>} />
// </ListItem>
// <ListItem>
// <ListItemText primary={<Typography variant="h6">CLASSES</Typography>} />
// </ListItem>
// <ListItem>
// <ListItemText primary={<Typography variant="h6">BOOKMARKS</Typography>} />
// </ListItem>
// </List>
// </StyledDrawer>
// )
// }
export function MenuBar() {
return(
<StyledDrawer variant="permanent">
<List>
<ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
<ListItemText primary={<Typography variant="h6">SUMMARY</Typography>} />
</ListItem>
<List>
<ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
<ListItemText primary={
<Link href="http://localhost:3000" underline="none" sx={{ color: 'inherit' }}>
All Scenarios
</Link>}
/>
</ListItem>
<ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
<ListItemText primary={
<Link href="http://localhost:3000" underline="none" sx={{ color: 'inherit' }}>
Failed Scenarios
</Link>}
/>
</ListItem>
<ListItem sx={{ paddingTop: 0.1, paddingBottom: 0.1 }}>
<ListItemText primary={
<Link href="http://localhost:3000" underline="none" sx={{ color: 'inherit' }}>
Pending Scenarios
</Link>}
/>
</ListItem>
</List>
<ListItem>
<ListItemText primary={<Typography variant="h6">TAGS</Typography>} />
</ListItem>
<ListItem>
<ListItemText primary={<Typography variant="h6">CLASSES</Typography>} />
</ListItem>
<ListItem>
<ListItemText primary={<Typography variant="h6">BOOKMARKS</Typography>} />
</ListItem>
</List>
</StyledDrawer>
)
}

function ScenarioTitles(props: { headers: Headers }) {
return (
Expand Down
12 changes: 6 additions & 6 deletions new/src/components/Scenarios/SingleScenarioView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReportStatistics, ScenarioCaseModel, ScenarioModel } from "../../reportModel";
import {/*MenuBar,*/ ScenarioOverview} from "../ScenarioOverview/ScenarioOverview";
import {MenuBar, ScenarioOverview} from "../ScenarioOverview/ScenarioOverview";
import { Scenario } from "./Scenario";
import { useState } from "react";
import {Grid} from "@mui/material";
Expand All @@ -9,11 +9,11 @@ export function SingleScenarioView(props: { reportName: string; scenario: Scenar
return (
<>
<Grid container>
{/*<Grid item xs={12} md={1}>*/}
{/* <div style={{ height: '100vh'}}>*/}
{/* <MenuBar/>*/}
{/* </div>*/}
{/*</Grid>*/}
<Grid item xs={12} md={1}>
<div style={{ height: '100vh'}}>
<MenuBar/>
</div>
</Grid>
<Grid item xs={12} md={11}>
<Grid container direction="column">
<Grid item xs={12}>
Expand Down

0 comments on commit 5f4d41f

Please sign in to comment.