From 974bc7ddb04a16818826fba1ebda11ab480e03cd Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 5 Oct 2018 10:49:46 +0300 Subject: [PATCH] fix: remove extra-padding caused by empty group sections --- src/components/ContentItems/ContentItems.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/ContentItems/ContentItems.tsx b/src/components/ContentItems/ContentItems.tsx index bebf37d2ba..3b638896b8 100644 --- a/src/components/ContentItems/ContentItems.tsx +++ b/src/components/ContentItems/ContentItems.tsx @@ -49,9 +49,11 @@ export class ContentItem extends React.Component { return ( <> -
- {content} -
+ {content && ( +
+ {content} +
+ )} {item.items && } );