fix: Increase badge size slightly so that "PATCH" method fits inside (#632)

This commit is contained in:
Fredrik Lengstrand 2018-09-05 08:44:47 +02:00 committed by Roman Hotsiy
parent 822d038190
commit 4b3b5ba974
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class OperationMenuItemContent extends React.Component<OperationMenuItemContentP
deprecated={item.deprecated}
>
<OperationBadge type={item.httpVerb}>{shortenHTTPVerb(item.httpVerb)}</OperationBadge>
<MenuItemTitle width="calc(100% - 32px)">
<MenuItemTitle width="calc(100% - 38px)">
{item.name}
{this.props.children}
</MenuItemTitle>

View File

@ -6,7 +6,7 @@ import styled, { css, withProps } from '../../styled-components';
export const OperationBadge = withProps<{ type: string }>(styled.span).attrs({
className: props => `operation-type ${props.type}`,
})`
width: 26px;
width: 32px;
display: inline-block;
height: ${props => props.theme.typography.code.fontSize};
line-height: ${props => props.theme.typography.code.fontSize};