Skip to content

Commit 3be3e61

Browse files
committed
☝️ fix emojicode#53
All generic parameters should appear on the same line in the docs
1 parent 2f357c8 commit 3be3e61

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

lib/typeUtils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ module.exports = {
1414
}
1515

1616
if (!type.type) {
17-
let str = `<a href="../${type.package}/${this.asciiName(type.name)}.html">${type.name}</a>`;
17+
let str = `<div class="type"><a href="../${type.package}/${this.asciiName(type.name)}.html">${type.name}</a>`;
1818
if (type.arguments.length > 0) {
1919
str += `🐚${type.arguments.map(arg => this.link(arg)).join('')}🍆`;
2020
}
21+
str += '</div>';
2122
return str;
2223
}
2324

src/static/css/docs.scss

+13-3
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,11 @@ section,
190190
}
191191

192192
.link-list {
193+
> * {
194+
display: block;
195+
}
196+
193197
a {
194-
display: flex;
195-
align-items: center;
196-
width: 100%;
197198
padding: 0.2em;
198199
margin: 0;
199200
border: 2px solid $p-gray;
@@ -222,6 +223,15 @@ section,
222223
border-bottom-right-radius: 4px;
223224
}
224225
}
226+
227+
228+
.type {
229+
display: block;
230+
231+
> * {
232+
display: inline-block;
233+
}
234+
}
225235
}
226236

227237
.toc {

0 commit comments

Comments
 (0)