Skip to content

Commit

Permalink
fix: Increase badge size slightly so that "PATCH" method fits inside (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fredriklengstrand authored and RomanHotsiy committed Sep 5, 2018
1 parent 822d038 commit 4b3b5ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/SideMenu/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SideMenu/styled.elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 4b3b5ba

Please sign in to comment.