diff --git a/frontend/components/usage.js b/frontend/components/usage.js index d83b0354b3503..7a4ae2977d128 100644 --- a/frontend/components/usage.js +++ b/frontend/components/usage.js @@ -66,7 +66,15 @@ export default class Usage extends React.PureComponent { ); } - render () { + static renderNamedLogos() { + const renderLogo = logo => {logo}; + const [first, ...rest] = logos; + return [renderLogo(first)].concat( + rest.reduce((result, logo) => result.concat([', ', renderLogo(logo)]), []) + ); + } + + render() { const { baseUri } = this.props; return (
@@ -142,7 +150,7 @@ export default class Usage extends React.PureComponent {

Here are a few other parameters you can use: (connecting several with "&" is possible)

- +
- +
@@ -160,7 +168,9 @@ export default class Usage extends React.PureComponent { ?logo=appveyor Insert one of the named logos ({logos.join(', ')}) + Insert one of the named logos ({this.constructor.renderNamedLogos()}) +
diff --git a/static/main.css b/static/main.css index 87d9256e8873a..0295f0e1a0eb8 100644 --- a/static/main.css +++ b/static/main.css @@ -57,6 +57,23 @@ table.centered > tbody > tr > td:first-child { text-align: right; } +table.usage { + table-layout: fixed; + border-spacing: 20px 10px; +} + +.nowrap { + white-space: nowrap; +} + +table.usage td:first-of-type { + max-width: 300px; +} + +table.usage td:nth-of-type(2) { + max-width: 600px; +} + th, td { text-align: left;