diff --git a/src/resources/css/docs.css b/src/resources/css/docs.css index 5dadcea..17d96a4 100644 --- a/src/resources/css/docs.css +++ b/src/resources/css/docs.css @@ -453,6 +453,7 @@ iframe { padding: 10px; color: #886c00; line-height: 1.4em; + display: none; } .nonstandard { @@ -519,6 +520,8 @@ article .json a { position: absolute; font-size: 16px; transition: transform .25s ease-in-out, opacity .25s ease-in-out; + max-height: 50%; + overflow-y: auto; } #hovercard:not(.popup) { diff --git a/src/resources/js/docs-api.js b/src/resources/js/docs-api.js index 1e52180..eaa47e9 100644 --- a/src/resources/js/docs-api.js +++ b/src/resources/js/docs-api.js @@ -164,13 +164,11 @@ function beginRenderingInto($tpl, moduleID, module) { // show notice if module is non-standard if (module.repo) { - if (isStandard(module.structure.type_name)) { - $('.nonstandard-notice', $tpl).remove(); - } else { + if (!isStandard(module.structure.type_name)) { let { pkg, _ } = splitTypeName(module.structure.type_name); $('.nonstandard-project-link', $tpl).attr('href', module.repo).text(module.repo); $('.nonstandard-package-path', $tpl).text(pkg); - $('.nonstandard-notice', $tpl).prepend(nonStandardFlag); + $('.nonstandard-notice', $tpl).prepend(nonStandardFlag).show(); } var $repoName = $('').text(stripScheme(module.repo));