Salvataggio modifiche correnti prima di implementare condivisione canto
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user