Skip to content

Commit

Permalink
Improve process styling when there are no stages
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-nu committed Mar 25, 2022
1 parent eadb7a8 commit 58d6e41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions frontend/App/Statuses/Status/Process/Process.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const ProcessContainer = styled.div<ProcessContainerProps>`

export const Stages = styled.div`
display: flex;
margin-top: 0.5rem;
`;

type StageProps = {
Expand Down Expand Up @@ -83,6 +84,4 @@ export const StageContainer = styled.div`
}
`;

export const Details = styled.div`
margin-bottom: 0.5rem;
`;
export const Details = styled.div``;
2 changes: 1 addition & 1 deletion frontend/App/Statuses/Status/Process/Process.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Process = ({ process }: Props): ReactElement => {
<Details>
<Icon icon="notes" /> {process.title}
</Details>
{process.stages && (
{process.stages && process.stages.length > 0 && (
<Stages>
{process.stages.map((stage) => (
<StageContainer key={stage.id}>
Expand Down

0 comments on commit 58d6e41

Please sign in to comment.