Skip to content

Commit

Permalink
fix: add some spacing between operation description and parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Aug 7, 2018
1 parent 9e69eed commit 597688e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Operation/Operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { ResponsesList } from '../Responses/ResponsesList';
import { ResponseSamples } from '../ResponseSamples/ResponseSamples';

import { OperationModel as OperationType } from '../../services/models';
import styled from '../../styled-components';

const OperationRow = Row.extend`
backface-visibility: hidden;
Expand All @@ -34,6 +35,10 @@ const OperationRow = Row.extend`
}
`;

const Description = styled(Markdown)`
margin-bottom: ${({ theme }) => theme.spacing.unit * 8};
`;

export interface OperationProps {
operation: OperationType;
}
Expand All @@ -54,7 +59,7 @@ export class Operation extends React.Component<OperationProps> {
{summary} {deprecated && <Badge type="warning"> Deprecated </Badge>}
</H2>
{options.pathInMiddlePanel && <Endpoint operation={operation} inverted={true} />}
{description !== undefined && <Markdown source={description} />}
{description !== undefined && <Description source={description} />}
<SecurityRequirements securities={operation.security} />
<Parameters parameters={operation.parameters} body={operation.requestBody} />
<ResponsesList responses={operation.responses} />
Expand Down

0 comments on commit 597688e

Please sign in to comment.