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

Commit

Permalink
💄 don't crop text and don't specify arbitrary max-height
Browse files Browse the repository at this point in the history
  • Loading branch information
dok committed Feb 27, 2019
1 parent 65d8e7b commit f7cf9a3
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 f7cf9a3

Please sign in to comment.