From 391688cd31d3a5075523e2ab8b84d400d3efd983 Mon Sep 17 00:00:00 2001 From: vmishenev Date: Wed, 22 Dec 2021 03:36:46 +0300 Subject: [PATCH] Fix link underlining in table and anchor icon --- plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 4 +++- plugins/base/src/main/resources/dokka/styles/style.css | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index c3b157380f..6b30fc12f7 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -450,7 +450,9 @@ open class HtmlRenderer( it.filter { sourceSetRestriction == null || it.sourceSets.any { s -> s in sourceSetRestriction } } .forEach { span("inline-flex") { - it.build(this, pageContext, sourceSetRestriction) + div { + it.build(this, pageContext, sourceSetRestriction) + } if (it is ContentLink && !anchorDestination.isNullOrBlank()) buildAnchorCopyButton( anchorDestination ) diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css index cbdff59bae..7ebf675ea8 100644 --- a/plugins/base/src/main/resources/dokka/styles/style.css +++ b/plugins/base/src/main/resources/dokka/styles/style.css @@ -747,7 +747,6 @@ td.content { } .main-subrow .anchor-icon { - padding: 0 8px; opacity: 0; transition: 0.2s 0.5s; } @@ -766,8 +765,9 @@ td.content { .main-subrow .anchor-wrapper { position: relative; - width: 16px; + width: 24px; height: 16px; + margin-left: 3px; } .inline-flex {