This commit is contained in:
TheGiddyLimit
2024-01-06 14:47:30 +00:00
parent 0a4253c9f0
commit e3bf75f42a
48 changed files with 14038 additions and 524 deletions

View File

@@ -433,17 +433,20 @@ class Omnisearch {
? `<a href="${adventureBookSourceHref}">${ptPageInner}</a>`
: ptPageInner;
const ptSourceInner = source ? `<span class="${Parser.sourceJsonToColor(source)}" ${Parser.sourceJsonToStyle(source)} title="${Parser.sourceJsonToFull(source)}">${Parser.sourceJsonToAbv(source)}</span>` : `<span></span>`;
const ptSourceInner = source
? `<span class="${Parser.sourceJsonToColor(source)}" ${Parser.sourceJsonToStyle(source)} title="${Parser.sourceJsonToFull(source)}">${Parser.sourceJsonToAbv(source)}</span>`
: `<span></span>`;
const ptSource = ptPage || !adventureBookSourceHref
? ptSourceInner
: `<a href="${adventureBookSourceHref}">${ptSourceInner}</a>`;
$$`<div class="omni__row-result split-v-center stripe-odd">
${$link}
<div class="inline-block">
<div class="ve-flex-v-center">
${ptSource}
${isSrd ? `<span class="ve-muted omni__disp-srd help-subtle relative" title="Available in the Systems Reference Document">[SRD]</span>` : ""}
${ptPage}
${Parser.sourceJsonToMarkerHtml(source, {isList: false, additionalStyles: "omni__disp-source-marker"})}
${ptPage ? `<span class="omni__wrp-page small-caps">${ptPage}</span>` : ""}
</div>
</div>`.appendTo(this._dispSearchOutput);
}