Add descriptive class names for flexsearch result items

This commit is contained in:
Michael Schnerring
2021-10-15 15:34:57 +02:00
parent a409d55365
commit 1710b80829
2 changed files with 6 additions and 4 deletions

View File

@ -144,10 +144,12 @@ Source:
const title = document.createElement('span');
title.textContent = doc.title;
title.classList.add("suggestion__title");
a.appendChild(title);
const description = document.createElement('span');
description.textContent = doc.description;
description.classList.add("suggestion__description");
a.appendChild(description);
suggestions.appendChild(entry);