Skip to content

Commit

Permalink
Fix variable heights
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 9cfec3c commit c020e44
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 60 deletions.
104 changes: 52 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,14 @@ 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': {
// width: 240,
// backgroundColor: "rgba(250,250,250,255)"
// },
// });

const Content = styled('div')(({ theme }) => ({
flexGrow: 1,
Expand Down Expand Up @@ -88,49 +88,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
16 changes: 8 additions & 8 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,15 +9,15 @@ 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}>
<div style={{ height: '20vh'}}>
<div style={{ height: '20em'}}>
<ScenarioOverview
headers={{
aboveHeader: props.scenario.className,
Expand Down Expand Up @@ -45,7 +45,7 @@ export function SingleScenarioView(props: { reportName: string; scenario: Scenar
</Grid>
</Grid>
<Grid item xs={12}>
<div style={{ height: '50vh'}}>
<div style={{ height: '40em'}}>
<Scenario
reportName={props.reportName}
scenario={props.scenario}
Expand Down

0 comments on commit c020e44

Please sign in to comment.