mirror of
https://github.com/simon987/sist2.git
synced 2025-12-11 14:38:54 +00:00
List mode tweak
This commit is contained in:
@@ -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", "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user