diff --git a/src/core/components/response.jsx b/src/core/components/response.jsx
index 95602c64..9d30849d 100644
--- a/src/core/components/response.jsx
+++ b/src/core/components/response.jsx
@@ -122,10 +122,10 @@ export default class Response extends React.Component {
- {specSelectors.isOAS3() ?
+ {specSelectors.isOAS3() ? |
{ links ?
links.toSeq().map((link, key) => {
- return
+ return
})
: No links}
| : null}
diff --git a/src/core/components/responses.jsx b/src/core/components/responses.jsx
index 1c00ff1a..88ab0c92 100644
--- a/src/core/components/responses.jsx
+++ b/src/core/components/responses.jsx
@@ -68,7 +68,7 @@ export default class Responses extends React.Component {
| Code |
Description |
- { specSelectors.isOAS3() ? Links | : null }
+ { specSelectors.isOAS3() ? Links | : null }
diff --git a/src/core/plugins/oas3/components/operation-link.jsx b/src/core/plugins/oas3/components/operation-link.jsx
index af05aec4..4e9aba91 100644
--- a/src/core/plugins/oas3/components/operation-link.jsx
+++ b/src/core/plugins/oas3/components/operation-link.jsx
@@ -4,7 +4,9 @@ import ImPropTypes from "react-immutable-proptypes"
class OperationLink extends Component {
render() {
- const { link, name } = this.props
+ const { link, name, getComponent } = this.props
+
+ const Markdown = getComponent("Markdown")
let targetOp = link.get("operationId") || link.get("operationRef")
let parameters = link.get("parameters") && link.get("parameters").toJS()
@@ -33,6 +35,7 @@ function padString(n, string) {
}
OperationLink.propTypes = {
+ getComponent: PropTypes.func.isRequired,
link: ImPropTypes.orderedMap.isRequired,
name: PropTypes.String
}
diff --git a/src/style/_layout.scss b/src/style/_layout.scss
index b99064d1..9ee357f0 100644
--- a/src/style/_layout.scss
+++ b/src/style/_layout.scss
@@ -522,6 +522,22 @@
}
}
+.response-col_links
+{
+ padding-left: 2em;
+ max-width: 40em;
+ font-size: 14px;
+
+ @include text_body();
+
+ .response-undocumented
+ {
+ font-size: 11px;
+
+ @include text_code(#999);
+ }
+}
+
.response-col_description__inner
{
span
diff --git a/src/style/_table.scss b/src/style/_table.scss
index cfec861a..7f065529 100644
--- a/src/style/_table.scss
+++ b/src/style/_table.scss
@@ -52,7 +52,8 @@ table
&:first-of-type
{
- width: 20%;
+ max-width: 20%;
+ min-width: 6em;
padding: 10px 0;
}
}