[mdn] WEB-73029 Wide gaps in params section of JS documentation

GitOrigin-RevId: 05157a3ab920f4224d6cf401eee49e817b835df8
This commit is contained in:
Piotr Tomiak
2025-05-16 14:21:15 +02:00
committed by intellij-monorepo-bot
parent 72ae3f9dca
commit 3353c41b71
2 changed files with 12 additions and 3 deletions

View File

@@ -764,12 +764,17 @@ private fun buildDoc(
fun buildSubSection(items: Map<String, String>): String {
val result = StringBuilder()
items.forEach { (name, doc) ->
result.append("<p><code>")
items.entries.forEachIndexed { index, (name, doc) ->
if (index < items.size - 1) {
result.append("<p class='mdn-bottom-margin'>")
} else {
result.append("<p>")
}
result.append("<code>")
.append(name)
.append("</code> &ndash; ")
.append(doc)
.append("<br><span style='font-size:0.2em'>&nbsp;</span>\n")
.append("\n")
}
return result.toString()
}

View File

@@ -33,6 +33,10 @@ class MdnDocumentationCssProvider : DocumentationCssProvider {
margin: 0;
line-height: 100%;
}
.mdn-bottom-margin {
margin-bottom: ${afterSpacing * 2}px
}
""".trimIndent()
}
}