rustdoc: js: change color and reduce size of typename in search result
This commit is contained in:
parent
689511047a
commit
1a94b06089
2 changed files with 7 additions and 1 deletions
|
@ -2024,7 +2024,9 @@ function initSearch(rawSearchIndex) {
|
|||
|
||||
resultName.insertAdjacentHTML(
|
||||
"beforeend",
|
||||
`${typeName} ${item.displayPath}<span class="${type}">${name}</span>`);
|
||||
`<span class="typename">${typeName}</span>`
|
||||
+ ` ${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