Move type name directly into the same DOM element

This commit is contained in:
Guillaume Gomez 2023-06-03 16:22:19 +02:00
parent f92cd67711
commit de85f7ff36
6 changed files with 5 additions and 31 deletions

View file

@ -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");