dash fade out

This commit is contained in:
ReznoRMichael 2021-02-17 04:36:20 +01:00
parent 5dfda5bffa
commit 17cfce0e85
2 changed files with 3 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -265,14 +265,12 @@ function PrepareHTMLString(divId, textPrefix = "Unknown Completion Element: ", t
let dash = ""; let dash = "";
if (textSuffix.length && textPrefix.length) dash = "— "; if (textSuffix.length && textPrefix.length) dash = "— ";
if (textPrefix.includes("<del>")) dash = "<del>— </del>"
// return divStart + icon + b[0] + textPrefix + b[1] + span[0] + pSpan + spoilerSpan[0] + dash + textSuffix + spoilerSpan[1] + span[1] + divEnd; // return divStart + icon + b[0] + textPrefix + b[1] + span[0] + pSpan + spoilerSpan[0] + dash + textSuffix + spoilerSpan[1] + span[1] + divEnd;
return ` return `
${divStart} ${divStart}
${icon}${b[0]}${textPrefix}${b[1]} ${icon}${b[0]}${textPrefix}${b[1]}${span[0]}${pSpan}${spoilerSpan[0]}${dash}${textSuffix}${spoilerSpan[1]}${span[1]}
${span[0]}
${pSpan}${spoilerSpan[0]}${dash}${textSuffix}${spoilerSpan[1]}
${span[1]}
${divEnd} ${divEnd}
`; `;
} }