Skip to content

Commit

Permalink
Fix dividers in fault tree and system editor side-panels
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Oct 10, 2024
1 parent 4afc44c commit 90978d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ const FaultEventMenu = ({
{basedFailureRate && (
<Box className={classes.eventPropertyRow}>{fhaFailureRateComponent(basedFailureRate, null, null)}</Box>
)}
<Divider className={classes.divider} />
</>
)}

Expand All @@ -456,7 +455,6 @@ const FaultEventMenu = ({
{basedFailureRate && (
<Box className={classes.eventPropertyRow}>{fhaFailureRateComponent(basedFailureRate, null, null)}</Box>
)}
<Divider className={classes.divider} />
</>
)}

Expand Down Expand Up @@ -533,7 +531,6 @@ const FaultEventMenu = ({
onChange={(event) => handleManuallyDefinedFailureRateChange(event, NodeTypeWithManualFailureRate.External)}
inputProps={{ inputMode: "decimal" }}
/>
<Divider className={classes.divider} />
</Box>
)}

Expand All @@ -547,6 +544,9 @@ const FaultEventMenu = ({
{shapeToolData && (
<EventFailureModeProvider eventIri={shapeToolData?.iri}>
<Box>
{(criticality || ataSystem || partNumber || stock || quantity || schematicDesignation) && (
<Divider className={classes.divider} />
)}
{criticality && <Typography>{propertyWithValue("eventDescription.severity", criticality)}</Typography>}
{ataSystem && (
<Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const ComponentSidebarMenu = ({ component, onComponentUpdated, systemComponents

return (
<React.Fragment>
<Divider />
{component ? (
<>
<Typography variant="h6" className={classes.menuTitle} gutterBottom>
Expand All @@ -76,7 +77,6 @@ const ComponentSidebarMenu = ({ component, onComponentUpdated, systemComponents
{t("systemComponentMenu.notSelected")}
</Typography>
)}
<Divider />

{component && (
<React.Fragment>
Expand Down

0 comments on commit 90978d5

Please sign in to comment.