Skip to content
Snippets Groups Projects
Commit a7813ace authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #15550 TIME 0:10 resize the right menu according to device

parent 6a371583
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
<div id="leftContent" style="display: contents;"></div>
</ion-menu>
<ion-router-outlet id="main-content"></ion-router-outlet>
<ion-menu [ngClass]="[isPortrait ? 'right-menu' : 'right-menu-responsive']" #rightMenu menuId="right-menu" contentId="main-content" side="end" type="overlay" disabled (ionDidOpen)="showRightContent=true"
<ion-menu [ngClass]="[!signaturesService.mobileMode ? 'right-menu' : 'right-menu-responsive']" #rightMenu menuId="right-menu" contentId="main-content" side="end" type="overlay" disabled (ionDidOpen)="showRightContent=true"
(ionDidClose)="showRightContent=false">
<div id="rightContent" style="display: contents;"></div>
</ion-menu>
......
......@@ -49,9 +49,12 @@ export class AppComponent {
this.debugMode = true;
}
this.platform.resize.subscribe(async () => {
this.isPortrait = this.platform.isPortrait() ? true : false;
});
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
this.signaturesService.mobileMode = true;
} else {
this.signaturesService.mobileMode = false;
}
}
test() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment