mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[mdn] WEB-73029 Wide gaps in params section of JS documentation
GitOrigin-RevId: 05157a3ab920f4224d6cf401eee49e817b835df8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
72ae3f9dca
commit
3353c41b71
@@ -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> – ")
|
||||
.append(doc)
|
||||
.append("<br><span style='font-size:0.2em'> </span>\n")
|
||||
.append("\n")
|
||||
}
|
||||
return result.toString()
|
||||
}
|
||||
|
||||
@@ -33,6 +33,10 @@ class MdnDocumentationCssProvider : DocumentationCssProvider {
|
||||
margin: 0;
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
.mdn-bottom-margin {
|
||||
margin-bottom: ${afterSpacing * 2}px
|
||||
}
|
||||
""".trimIndent()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user