support multiline dynamic text in presentation mode

This commit is contained in:
2023-05-16 17:08:53 +02:00
parent e7c2cf376e
commit 18a2907bf7
2 changed files with 8 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
<div class="date">{{ date | date: "dd.MM.yyyy" }}</div>
</div>
<div *ngIf="songId === 'dynamicText'" @songSwitch class="start fullscreen">
<div *ngIf="songId === 'dynamicText'" @songSwitch class="start fullscreen dynamic-text">
<div>{{ presentationDynamicCaption }}</div>
<div class="date">{{ presentationDynamicText }}</div>
</div>
@@ -33,13 +33,13 @@
*ngIf="songId !== 'title' && songId !== 'empty'"
[@songSwitch]="songId"
[fullscreen]="true"
[index]="index"
[index]="index??0"
[showSwitch]="false"
[text]="song.text"
chordMode="hide"
></app-song-text>
<app-legal
*ngIf="songId !== 'title' && songId !== 'empty'"
*ngIf="songId !== 'title' && songId !== 'empty' && songId !== 'dynamicText'"
[@songSwitch]="songId"
[config]="config$ | async"
[song]="song"

View File

@@ -106,7 +106,12 @@
filter: blur(30px);
opacity: 0.1;
transform: scale(0.8) translateY(-10%);
&.no-logo {
opacity: 0;
}
}
.dynamic-text {
white-space: pre-wrap;
}