List mode tweak

This commit is contained in:
2019-11-17 16:27:59 -05:00
parent 6111ded77f
commit 893ff145c5
4 changed files with 17 additions and 11 deletions

View File

@@ -357,14 +357,6 @@ function createDocLine(hit) {
const line = document.createElement("div");
line.setAttribute("class", "list-group-item flex-column align-items-start");
// Content
let contentHl = getContentHighlight(hit);
if (contentHl !== undefined) {
const contentDiv = document.createElement("div");
contentDiv.setAttribute("class", "content-div");
contentDiv.insertAdjacentHTML('afterbegin', contentHl);
line.appendChild(contentDiv);
}
const title = makeTitle(hit);
@@ -385,6 +377,15 @@ function createDocLine(hit) {
}
media.appendChild(titleDiv);
// Content
let contentHl = getContentHighlight(hit);
if (contentHl !== undefined) {
const contentDiv = document.createElement("div");
contentDiv.setAttribute("class", "content-div");
contentDiv.insertAdjacentHTML('afterbegin', contentHl);
titleDiv.appendChild(contentDiv);
}
let tagContainer = document.createElement("div");
tagContainer.setAttribute("class", "");