diff options
author | Filip Zybała <fzybala@virtuslab.com> | 2020-05-07 09:38:00 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@users.noreply.github.com> | 2020-05-07 14:00:13 +0200 |
commit | 696533430fee5a92c32d5a2b95f14ce072b4264a (patch) | |
tree | db14907593a13961eb3bc672864294de975cf835 /plugins/base/src/main | |
parent | 652fd907f5bef6dfb87b545158c34d84f2902f06 (diff) | |
download | dokka-696533430fee5a92c32d5a2b95f14ce072b4264a.tar.gz dokka-696533430fee5a92c32d5a2b95f14ce072b4264a.tar.bz2 dokka-696533430fee5a92c32d5a2b95f14ce072b4264a.zip |
Platform tag is created only if content has one platform. Adjusted css: deleted animation. Div should handle multiple signatures.
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index c53b1b6d..4f0c1e55 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -141,20 +141,22 @@ open class HtmlRenderer( else -> div { it.build(this, pageContext, platformRestriction) } } } - if (ContentKind.shouldBePlatformTagged(node.dci.kind)) { + if (ContentKind.shouldBePlatformTagged(node.dci.kind) && node.platforms.size == 1) { createPlatformTags(node) } } } it.filter { it.dci.kind == ContentKind.Symbol }.takeIf { it.isNotEmpty() }?.let { div("signature-subrow") { - div("signature"){ - it.first().build(this, pageContext, platformRestriction) + div("signatures"){ + it.forEach { + it.build(this, pageContext, platformRestriction) + } } } } } - } + } } private fun FlowContent.createPlatformTags( node: ContentNode ) { |