mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 11:26:37 +03:00
fix: addd indent to array schema internals
This commit is contained in:
parent
39b930d0ee
commit
865f3ced4b
|
@ -3,6 +3,11 @@ import * as React from 'react';
|
|||
import { Schema, SchemaProps } from './Schema';
|
||||
|
||||
import { ArrayClosingLabel, ArrayOpenningLabel } from '../../common-elements';
|
||||
import styled from '../../styled-components';
|
||||
|
||||
const PaddedSchema = styled.div`
|
||||
padding-left: ${({ theme }) => theme.spacing.unit * 2}px;
|
||||
`;
|
||||
|
||||
export class ArraySchema extends React.PureComponent<SchemaProps> {
|
||||
render() {
|
||||
|
@ -10,7 +15,9 @@ export class ArraySchema extends React.PureComponent<SchemaProps> {
|
|||
return (
|
||||
<div>
|
||||
<ArrayOpenningLabel> Array </ArrayOpenningLabel>
|
||||
<Schema {...this.props} schema={itemsSchema} />
|
||||
<PaddedSchema>
|
||||
<Schema {...this.props} schema={itemsSchema} />
|
||||
</PaddedSchema>
|
||||
<ArrayClosingLabel />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user