diff --git a/src/components/inputs/SpecDoc.js b/src/components/inputs/SpecDoc.js index 6c8ddc3..1cc7fe0 100644 --- a/src/components/inputs/SpecDoc.js +++ b/src/components/inputs/SpecDoc.js @@ -9,7 +9,7 @@ export default class SpecDoc extends React.Component { render () { const {fieldSpec} = this.props; - const {doc} = fieldSpec; + const {doc, values} = fieldSpec; const sdkSupport = fieldSpec['sdk-support']; const headers = { @@ -22,11 +22,25 @@ export default class SpecDoc extends React.Component { return ( <> {doc && -
{JSON.stringify(key)}
+ diff --git a/src/styles/_input.scss b/src/styles/_input.scss index a77a96b..03aa4ea 100644 --- a/src/styles/_input.scss +++ b/src/styles/_input.scss @@ -194,13 +194,13 @@ overflow: hidden; } -.sdk-support { +.SpecDoc__sdk-support { position: relative; max-width: 100%; overflow-x: auto; } -.sdk-support__table { +.SpecDoc__sdk-support__table { width: 100%; margin-top: $margin-3; @@ -210,3 +210,13 @@ white-space: nowrap; } } + +.SpecDoc__values li { + margin-top: $margin-3; +} + +.SpecDoc__values code { + background: $color-midgray; + padding: 0.1em 0.3em; + border-radius: 2px; +} |
---|