From 696533430fee5a92c32d5a2b95f14ce072b4264a Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Thu, 7 May 2020 09:38:00 +0200 Subject: Platform tag is created only if content has one platform. Adjusted css: deleted animation. Div should handle multiple signatures. --- plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/base/src/main') 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 ) { -- cgit