mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-16 18:00:33 +03:00
fix: remove extra-padding caused by empty group sections
This commit is contained in:
parent
505463f5ab
commit
974bc7ddb0
|
@ -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} />}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user