aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/renderers/html
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers/html')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index 31753332..a6c7e326 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -685,7 +685,12 @@ open class HtmlRenderer(
code.children.forEach { buildContentNode(it, pageContext) }
}
}
- copyButton()
+ /*
+ Disable copy button on samples as:
+ - it is useless
+ - it overflows with playground's run button
+ */
+ if(!code.style.contains(ContentStyle.RunnableSample)) copyButton()
}
}