List mode tweak

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

File diff suppressed because one or more lines are too long

View File

@ -182,6 +182,8 @@ mark {
border: 1px solid #616161; border: 1px solid #616161;
border-radius: 4px; border-radius: 4px;
margin: 3px; margin: 3px;
white-space: normal;
color: rgb(224, 224, 224);
} }
.irs-single, .irs-from, .irs-to { .irs-single, .irs-from, .irs-to {
@ -335,6 +337,7 @@ option {
.media-expanded .fit { .media-expanded .fit {
max-height: none; max-height: none;
} }
.tagline { .tagline {
display: none; display: none;
} }

View File

@ -151,6 +151,8 @@ mark {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 4px;
margin: 3px; margin: 3px;
white-space: normal;
color: #000;
} }
.irs-single, .irs-from, .irs-to { .irs-single, .irs-from, .irs-to {

View File

@ -357,14 +357,6 @@ function createDocLine(hit) {
const line = document.createElement("div"); const line = document.createElement("div");
line.setAttribute("class", "list-group-item flex-column align-items-start"); 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); const title = makeTitle(hit);
@ -385,6 +377,15 @@ function createDocLine(hit) {
} }
media.appendChild(titleDiv); 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"); let tagContainer = document.createElement("div");
tagContainer.setAttribute("class", ""); tagContainer.setAttribute("class", "");