Filx text break

This commit is contained in:
Stephan Porada 2020-04-16 13:49:21 +02:00
parent 8cec7b2d3a
commit 1567e6e134
2 changed files with 5 additions and 5 deletions

View File

@ -258,9 +258,8 @@ class ResultsList extends List {
console.log(tokenHTMLArray); console.log(tokenHTMLArray);
console.log(uniqueS); console.log(uniqueS);
partElement = document.createElement("div");
for (let sId of uniqueS) { for (let sId of uniqueS) {
let htmlSentence = `<div class="sentence" data-sid="${sId}"></div>`; let htmlSentence = `<span class="sentence" data-sid="${sId}"></span>`;
let sentenceElement = this.HTMLTStrToElement(htmlSentence); let sentenceElement = this.HTMLTStrToElement(htmlSentence);
for (let tokenElement of tokenHTMLArray) { for (let tokenElement of tokenHTMLArray) {
if (tokenElement.dataset.sid == sId) { if (tokenElement.dataset.sid == sId) {
@ -270,9 +269,8 @@ class ResultsList extends List {
continue; continue;
} }
} }
partElement.appendChild(sentenceElement); contextResultsElement.appendChild(sentenceElement);
} }
contextResultsElement.appendChild(partElement);
if (expertModeSwitchElement.checked) { if (expertModeSwitchElement.checked) {
this.expertModeOn(); this.expertModeOn();

View File

@ -243,7 +243,9 @@
</form> </form>
</div> </div>
<div class="divider"></div> <div class="divider"></div>
<div class="section" id="context-results"> <div class="section">
<h5>Context</h5>
<div class="row" id="context-results" style="overflow-wrap: break-word;"></div>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">