Skip to content

Commit

Permalink
fix: remove extra-padding caused by empty group sections
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Oct 5, 2018
1 parent 505463f commit 974bc7d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/ContentItems/ContentItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ export class ContentItem extends React.Component<ContentItemProps> {

return (
<>
<Section id={item.id} underlined={item.type === 'operation'}>
{content}
</Section>
{content && (
<Section id={item.id} underlined={item.type === 'operation'}>
{content}
</Section>
)}
{item.items && <ContentItems items={item.items} />}
</>
);
Expand Down

0 comments on commit 974bc7d

Please sign in to comment.