mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +03:00
fixes
This commit is contained in:
parent
9f89e3e9f0
commit
8196795f3c
|
@ -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'};
|
||||
|
|
|
@ -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 && (
|
||||
|
|
Loading…
Reference in New Issue
Block a user