fix: change menu postion based on platform

This commit is contained in:
Evandre Silva
2022-04-08 12:31:23 +01:00
parent 773761a220
commit 9c84631049
6 changed files with 29 additions and 17 deletions
+5
View File
@@ -1,5 +1,7 @@
<ion-tabs class="tab" >
<div *ngIf="this.platform.is('mobile')">
<ion-tab-bar *ngIf="p.userPermissionCount([permissionList.Agenda.access, permissionList.Gabinete.access, permissionList.Actions.access, permissionList.Chat.access]) >= 2 || (p.userPermission([permissionList.Agenda.access]) && loggeduser.OwnerCalendars.length != 0) || p.userPermission([permissionList.Gabinete.access])" class="bottoms" slot="bottom">
<ion-tab-button *ngIf="loggeduser.OwnerCalendars.length >= 1 || p.userPermission([permissionList.Gabinete.access])" tab="events" [class.active]="pathname === '/home/events'">
@@ -39,5 +41,8 @@
</ion-tab-button>
</ion-tab-bar>
</div>
</ion-tabs>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
+5 -5
View File
@@ -40,12 +40,12 @@ ion-badge {/* */
}
@media only screen and (min-width: 1366px) {
// @media only screen and (min-width: 1366px) {
ion-tabs.tab .bottoms{
display: none;
}
}
// ion-tabs.tab .bottoms{
// display: none;
// }
// }
ion-tab-button.active{
+1 -1
View File
@@ -93,7 +93,7 @@ export class HomePage implements OnInit {
private router: Router,
public modalCtrl: AlertController,
private notificationsService: NotificationsService,
private platform: Platform,
public platform: Platform,
private activeroute: ActivatedRoute,
/* private webnotification: WebNotificationsService, */
public p: PermissionService,
+2 -1
View File
@@ -47,7 +47,7 @@
</div>
</div>
<div class="desktop mx-20">
<div *ngIf="this.platform.is('desktop')" class="desktop mx-20">
<div class="d-flex justify-space-between align-center">
<div tab="events" class="div-logo height-fit-content">
<div class="logo-icon">
@@ -169,6 +169,7 @@
</div>
</div>
</div>
<div class="header-bottom-line"></div>
<!-- {{ RouteService.history | json }} -->
+10 -4
View File
@@ -121,17 +121,23 @@
display: none;
}
@media only screen and (min-width: 1366px) {
// @media only screen and (min-width: 1366px) {
.mobile{
// .mobile{
// display: none !important;
// }
// .desktop{
// display: block;
// }
// }
.mobile{
display: none !important;
}
.desktop{
display: block;
}
}
.tab{
height: 65px;
cursor: pointer;
+1 -1
View File
@@ -39,7 +39,7 @@ export class HeaderPage implements OnInit {
private modalController: ModalController,
private animationController: AnimationController,
private storageservice: StorageService,
private platform: Platform,
public platform: Platform,
//private notificationsService: NotificationsService,
private eventrigger: EventTrigger,
public ThemeService: ThemeService,