This commit is contained in:
Yurov Dmitry 2019-03-28 11:15:02 +03:00
parent 9f89e3e9f0
commit 8196795f3c
2 changed files with 14 additions and 13 deletions

View File

@ -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'};

View File

@ -52,18 +52,18 @@ export class MenuItem extends React.Component<MenuItemProps> {
{item.type === 'operation' ? (
<OperationMenuItemContent {...this.props} item={item as OperationModel} />
) : (
<MenuItemLabel depth={item.depth} active={item.active} type={item.type}>
<MenuItemTitle title={item.name}>
{item.name}
{this.props.children}
</MenuItemTitle>
{(item.depth > 0 &&
item.items.length > 0 && (
<ShelfIcon float={'right'} direction={item.expanded ? 'down' : 'right'} />
)) ||
null}
</MenuItemLabel>
)}
<MenuItemLabel depth={item.depth} active={item.active} type={item.type}>
<MenuItemTitle title={item.name}>
{item.name}
{this.props.children}
</MenuItemTitle>
{(item.depth > 0 &&
item.items.length > 0 && (
<ShelfIcon float={'right'} direction={item.expanded ? 'down' : 'right'} />
)) ||
null}
</MenuItemLabel>
)}
{!withoutChildren &&
item.items &&
item.items.length > 0 && (