Skip to content

Commit

Permalink
fix: enum list doesn't wrap
Browse files Browse the repository at this point in the history
fixes #993
  • Loading branch information
RomanHotsiy committed Aug 1, 2019
1 parent aba45db commit bfbb0c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/common-elements/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export const ExampleValue = styled(FieldLabel)`
background-color: ${transparentize(0.95, theme.colors.text.primary)};
color: ${transparentize(0.1, theme.colors.text.primary)};
margin: ${theme.spacing.unit}px;
padding: 0 ${theme.spacing.unit}px;
border: 1px solid ${transparentize(0.9, theme.colors.text.primary)};
font-family: ${theme.typography.code.fontFamily};
Expand Down
4 changes: 2 additions & 2 deletions src/components/Fields/EnumValues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ export class EnumValues extends React.PureComponent<EnumValuesProps> {
<FieldLabel>
{type === 'array' ? l('enumArray') : ''}{' '}
{values.length === 1 ? l('enumSingleValue') : l('enum')}:
</FieldLabel>
</FieldLabel>{' '}
{values.map((value, idx) => {
const exampleValue = enumSkipQuotes ? value : JSON.stringify(value);
return (
<React.Fragment key={idx}>
<ExampleValue>{exampleValue}</ExampleValue>
<ExampleValue>{exampleValue}</ExampleValue>{' '}
</React.Fragment>
);
})}
Expand Down

0 comments on commit bfbb0c1

Please sign in to comment.