Move type name directly into the same DOM element
This commit is contained in:
parent
f92cd67711
commit
de85f7ff36
6 changed files with 5 additions and 31 deletions
|
@ -1892,14 +1892,9 @@ function initSearch(rawSearchIndex) {
|
|||
resultName.appendChild(alias);
|
||||
}
|
||||
|
||||
const typeDisplay = document.createElement("div");
|
||||
typeDisplay.innerText = typeName;
|
||||
typeDisplay.className = "type-kind";
|
||||
link.appendChild(typeDisplay);
|
||||
|
||||
resultName.insertAdjacentHTML(
|
||||
"beforeend",
|
||||
item.displayPath + "<span class=\"" + type + "\">" + name + "</span>");
|
||||
`${typeName} ${item.displayPath}<span class="${type}">${name}</span>`);
|
||||
link.appendChild(resultName);
|
||||
|
||||
const description = document.createElement("div");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue