Salvataggio modifiche correnti prima di implementare condivisione canto

This commit is contained in:
David Frassi
2026-06-16 16:14:20 +02:00
parent 1b6e8a1832
commit 2d23dcae83
13 changed files with 401 additions and 69 deletions
+10 -3
View File
@@ -18,6 +18,9 @@ import { FaceDetectorService } from '../../services/face-detector.service';
selector: 'app-player',
templateUrl: './player.page.html',
styleUrls: ['./player.page.scss'],
host: {
'[class.landscape-active]': 'isLandscapeActive()'
},
standalone: false
})
export class PlayerPage implements OnInit, AfterViewInit, OnDestroy {
@@ -40,7 +43,11 @@ export class PlayerPage implements OnInit, AfterViewInit, OnDestroy {
}
public isLandscapeActive = signal<boolean>(window.innerWidth > window.innerHeight);
private windowLandscape = signal<boolean>(window.innerWidth > window.innerHeight);
public isLandscapeActive = computed(() => {
return this.windowLandscape() && this.settingsService.landscapeProjectionEnabled();
});
/** true = show chords (accordi mode), false = text only */
public showChords = signal<boolean>(false);
@@ -318,12 +325,12 @@ export class PlayerPage implements OnInit, AfterViewInit, OnDestroy {
@HostListener('window:resize', ['$event'])
onResize(event: any) {
this.isLandscapeActive.set(window.innerWidth > window.innerHeight);
this.windowLandscape.set(window.innerWidth > window.innerHeight);
this.checkLandscapeZoom();
}
private isLandscape(): boolean {
return window.innerWidth > window.innerHeight;
return this.isLandscapeActive();
}
private checkAndLimitFontSize(targetFont: number): number {