changed up the highlight fragment formatter

This commit is contained in:
jonaswinkler
2020-12-18 16:42:33 +01:00
parent 36eea03acb
commit 0f47080da4
3 changed files with 23 additions and 23 deletions

View File

@@ -1,3 +1,3 @@
... <span *ngFor="let fragment of highlights">
<span *ngFor="let token of fragment" [ngClass]="token.term != null ? 'match term'+ token.term : ''">{{token.text}}</span> ...
<span *ngFor="let token of fragment" [class.match]="token.highlight">{{token.text}}</span> ...
</span>