Merge branch 'fix_chord_view' into 'master'

Fix chord view

Closes #10

See merge request openlp/web-remote!22
This commit is contained in:
Raoul Snyman 2020-06-22 00:35:06 +00:00
commit 29041b7f1e
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<span *ngFor="let tag of tags" [class.active]="tag.active">{{ tag.text }}</span>
</div>
<div class="container">
<div class="slide currentSlide song" [innerHTML]="chordproFormatted(currentSlides[0])|chordpro:transpose"></div>
<div class="slide currentSlide song mat-display-3" [innerHTML]="chordproFormatted(currentSlides[activeSlide])|chordpro:transpose"></div>
<div class="nextSlides">
<div class="slide song" [class.first]="slide.first_slide_of_tag" *ngFor="let slide of nextSlides" [innerHTML]="chordproFormatted(slide)|chordpro:transpose"></div>
</div>

View File

@ -32,6 +32,7 @@ export class ChordViewComponent extends StageViewComponent {
chordpro = chordpro.replace(/<\/span>/g, '');
chordpro = chordpro.replace(/<strong>/g, '[');
chordpro = chordpro.replace(/<\/strong>/g, ']');
chordpro = chordpro.replace(/<br>/g, '\n');
return chordpro;
}