From 8196795f3c35fdb43e09710c267848a2afb3eda3 Mon Sep 17 00:00:00 2001 From: Yurov Dmitry Date: Thu, 28 Mar 2019 11:15:02 +0300 Subject: [PATCH] fixes --- src/components/Endpoint/styled.elements.ts | 3 ++- src/components/SideMenu/MenuItem.tsx | 24 +++++++++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/Endpoint/styled.elements.ts b/src/components/Endpoint/styled.elements.ts index 8014dcf4..20fe6720 100644 --- a/src/components/Endpoint/styled.elements.ts +++ b/src/components/Endpoint/styled.elements.ts @@ -4,6 +4,7 @@ export const OperationEndpointWrap = styled.div` cursor: pointer; position: relative; margin-bottom: 5px; + margin-top: 20px; `; export const ServerRelativeURL = styled.span` @@ -36,7 +37,7 @@ export const EndpointInfo = styled.div<{ expanded?: boolean; inverted?: boolean export const HttpVerb = styled.span.attrs((props: { type: string }) => ({ className: `http-verb ${props.type}`, -}))<{ type: string }>` +})) <{ type: string }>` font-size: 0.929em; line-height: 20px; background-color: ${(props: any) => props.theme.colors.http[props.type] || '#999999'}; diff --git a/src/components/SideMenu/MenuItem.tsx b/src/components/SideMenu/MenuItem.tsx index 9b66cb53..3de50655 100644 --- a/src/components/SideMenu/MenuItem.tsx +++ b/src/components/SideMenu/MenuItem.tsx @@ -52,18 +52,18 @@ export class MenuItem extends React.Component { {item.type === 'operation' ? ( ) : ( - - - {item.name} - {this.props.children} - - {(item.depth > 0 && - item.items.length > 0 && ( - - )) || - null} - - )} + + + {item.name} + {this.props.children} + + {(item.depth > 0 && + item.items.length > 0 && ( + + )) || + null} + + )} {!withoutChildren && item.items && item.items.length > 0 && (