mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 11:32:47 +00:00
Merge branch 'fix_chord_view' into 'master'
Fix chord view Closes #10 See merge request openlp/web-remote!22
This commit is contained in:
commit
29041b7f1e
@ -4,7 +4,7 @@
|
|||||||
<span *ngFor="let tag of tags" [class.active]="tag.active">{{ tag.text }}</span>
|
<span *ngFor="let tag of tags" [class.active]="tag.active">{{ tag.text }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<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="nextSlides">
|
||||||
<div class="slide song" [class.first]="slide.first_slide_of_tag" *ngFor="let slide of nextSlides" [innerHTML]="chordproFormatted(slide)|chordpro:transpose"></div>
|
<div class="slide song" [class.first]="slide.first_slide_of_tag" *ngFor="let slide of nextSlides" [innerHTML]="chordproFormatted(slide)|chordpro:transpose"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,6 +32,7 @@ export class ChordViewComponent extends StageViewComponent {
|
|||||||
chordpro = chordpro.replace(/<\/span>/g, '');
|
chordpro = chordpro.replace(/<\/span>/g, '');
|
||||||
chordpro = chordpro.replace(/<strong>/g, '[');
|
chordpro = chordpro.replace(/<strong>/g, '[');
|
||||||
chordpro = chordpro.replace(/<\/strong>/g, ']');
|
chordpro = chordpro.replace(/<\/strong>/g, ']');
|
||||||
|
chordpro = chordpro.replace(/<br>/g, '\n');
|
||||||
|
|
||||||
return chordpro;
|
return chordpro;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user