mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
improve gabinete digital responsiveness
This commit is contained in:
@@ -339,10 +339,13 @@ export class AgendaPage implements OnInit {
|
|||||||
// for timeline
|
// for timeline
|
||||||
centralizeTimeline(timeout: number) {
|
centralizeTimeline(timeout: number) {
|
||||||
// auto scroll timeline
|
// auto scroll timeline
|
||||||
|
|
||||||
|
if(!this.showLoader) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const timelineMarker = document.querySelector('.cal-current-time-marker');
|
const timelineMarker = document.querySelector('.cal-current-time-marker');
|
||||||
const scrollContainer = document.querySelector('.timeline-wrapper');
|
const scrollContainer = document.querySelector('.timeline-wrapper');
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
scrollContainer.scroll({
|
scrollContainer.scroll({
|
||||||
top: timelineMarker['offsetTop'] - ((scrollContainer['offsetHeight']/2) - 60),
|
top: timelineMarker['offsetTop'] - ((scrollContainer['offsetHeight']/2) - 60),
|
||||||
@@ -351,12 +354,19 @@ export class AgendaPage implements OnInit {
|
|||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
//
|
//
|
||||||
|
if(!this.showLoader) {
|
||||||
this.selectFirstEventOfTheDay();
|
this.selectFirstEventOfTheDay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, timeout);
|
}, timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// for timeline
|
// for timeline
|
||||||
timelineIsCurrentDate(): Boolean {
|
timelineIsCurrentDate(): Boolean {
|
||||||
return momentG(new Date(),'dd MMMM yyyy', 'pt') == momentG(this.eventSelectedDate,'dd MMMM yyyy', 'pt');
|
return momentG(new Date(),'dd MMMM yyyy', 'pt') == momentG(this.eventSelectedDate,'dd MMMM yyyy', 'pt');
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<div class="main-content d-flex height-100">
|
<div class="main-content d-flex height-100">
|
||||||
|
|
||||||
<!-- Aside left -->
|
<!-- Aside left -->
|
||||||
<div class="aside-wrapper d-flex flex-column justify-center width-md-40 ">
|
<div class="aside-wrapper d-flex flex-column justify-center width-md-40 flex-grow-1 ">
|
||||||
<div class="title-container">
|
<div class="title-container">
|
||||||
<ion-label class="title">Gabinete Digital</ion-label>
|
<ion-label class="title">Gabinete Digital</ion-label>
|
||||||
<button class="btn-no-color btn-refresh" (click)="doRefresh($event)">
|
<button class="btn-no-color btn-refresh" (click)="doRefresh($event)">
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
|
|
||||||
window.onresize = (event) => {
|
window.onresize = (event) => {
|
||||||
// if not mobile remove all component
|
// if not mobile remove all component
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 800){
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -195,7 +195,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
console.log(profile);
|
console.log(profile);
|
||||||
|
|
||||||
this.closeAllDesktopComponents();
|
this.closeAllDesktopComponents();
|
||||||
if( window.innerWidth <= 1024){
|
if( window.innerWidth <= 800){
|
||||||
this.openEventsToApproveList(profile);
|
this.openEventsToApproveList(profile);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Reference in New Issue
Block a user