Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/fix/cropping-schema-body'
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Mar 1, 2019
2 parents c20500d + f7cf9a3 commit 6fb7cdf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/api-explorer/api-explorer.css
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ form.rjsf fieldset {

.response-schema {
overflow-y: auto;
max-height: 600px;
}

.hub-reference-response-definitions.dark p,
Expand Down
3 changes: 1 addition & 2 deletions packages/api-explorer/src/ResponseSchemaBody.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function flattenResponseSchema(obj, oas, parent = '', level = 0) {

function ResponseSchemaBody({ schema, oas }) {
const rows = flatten(flattenResponseSchema(schema, oas)).map(row => (
<tr key={Math.random().toString(10)} style={{ overflow: 'hidden' }}>
<tr key={Math.random().toString(10)}>
<th
style={{
whiteSpace: 'nowrap',
Expand All @@ -108,7 +108,6 @@ function ResponseSchemaBody({ schema, oas }) {
width: '70%',
overflow: 'hidden',
paddingLeft: '15px',
whiteSpace: 'nowrap',
}}
>
{row.name}
Expand Down

0 comments on commit 6fb7cdf

Please sign in to comment.