Skip to content

Commit 31bf1d3

Browse files
committed
MOAR link styling
1 parent 8d7f2dd commit 31bf1d3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/core/plugins/oas3/components/operation-link.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ class OperationLink extends Component {
1010
let parameters = link.get("parameters") && link.get("parameters").toJS()
1111
let description = link.get("description")
1212

13-
return <span>
14-
<div style={{ padding: "5px 2px" }}>{name}{description ? `: ${description}` : ""}</div>
13+
return <div style={{ marginBottom: "1.5em" }}>
14+
<div style={{ marginBottom: ".5em" }}>
15+
<b><code>{name}</code></b>
16+
{ description ? <Markdown source={description}></Markdown> : null }
17+
</div>
1518
<pre>
1619
Operation `{targetOp}`<br /><br />
1720
Parameters {padString(0, JSON.stringify(parameters, null, 2)) || "{}"}<br />
1821
</pre>
19-
</span>
22+
</div>
2023
}
2124

2225
}

0 commit comments

Comments
 (0)