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; cursor: pointer;
position: relative; position: relative;
margin-bottom: 5px; margin-bottom: 5px;
margin-top: 20px;
`; `;
export const ServerRelativeURL = styled.span` 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 }) => ({ export const HttpVerb = styled.span.attrs((props: { type: string }) => ({
className: `http-verb ${props.type}`, className: `http-verb ${props.type}`,
}))<{ type: string }>` })) <{ type: string }>`
font-size: 0.929em; font-size: 0.929em;
line-height: 20px; line-height: 20px;
background-color: ${(props: any) => props.theme.colors.http[props.type] || '#999999'}; 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' ? ( {item.type === 'operation' ? (
<OperationMenuItemContent {...this.props} item={item as OperationModel} /> <OperationMenuItemContent {...this.props} item={item as OperationModel} />
) : ( ) : (
<MenuItemLabel depth={item.depth} active={item.active} type={item.type}> <MenuItemLabel depth={item.depth} active={item.active} type={item.type}>
<MenuItemTitle title={item.name}> <MenuItemTitle title={item.name}>
{item.name} {item.name}
{this.props.children} {this.props.children}
</MenuItemTitle> </MenuItemTitle>
{(item.depth > 0 && {(item.depth > 0 &&
item.items.length > 0 && ( item.items.length > 0 && (
<ShelfIcon float={'right'} direction={item.expanded ? 'down' : 'right'} /> <ShelfIcon float={'right'} direction={item.expanded ? 'down' : 'right'} />
)) || )) ||
null} null}
</MenuItemLabel> </MenuItemLabel>
)} )}
{!withoutChildren && {!withoutChildren &&
item.items && item.items &&
item.items.length > 0 && ( item.items.length > 0 && (