Skip to content

Commit

Permalink
fix: fix scroll in example dropdown (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk authored Dec 9, 2021
1 parent 3d11a80 commit bc2d9a7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/Operation/Operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ import { ResponsesList } from '../Responses/ResponsesList';
import { ResponseSamples } from '../ResponseSamples/ResponseSamples';
import { SecurityRequirements } from '../SecurityRequirement/SecurityRequirement';

const OperationRow = styled(Row)`
backface-visibility: hidden;
contain: content;
overflow: hidden;
`;

const Description = styled.div`
margin-bottom: ${({ theme }) => theme.spacing.unit * 6}px;
Expand All @@ -43,7 +38,7 @@ export class Operation extends React.Component<OperationProps> {
return (
<OptionsContext.Consumer>
{options => (
<OperationRow>
<Row>
<MiddlePanel>
<H2>
<ShareLink to={operation.id} />
Expand Down Expand Up @@ -71,7 +66,7 @@ export class Operation extends React.Component<OperationProps> {
<ResponseSamples operation={operation} />
<CallbackSamples callbacks={operation.callbacks} />
</DarkRightPanel>
</OperationRow>
</Row>
)}
</OptionsContext.Consumer>
);
Expand Down

0 comments on commit bc2d9a7

Please sign in to comment.