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,22 +339,32 @@ export class AgendaPage implements OnInit {
|
|||||||
// for timeline
|
// for timeline
|
||||||
centralizeTimeline(timeout: number) {
|
centralizeTimeline(timeout: number) {
|
||||||
// auto scroll timeline
|
// auto scroll timeline
|
||||||
setTimeout(() => {
|
|
||||||
const timelineMarker = document.querySelector('.cal-current-time-marker');
|
|
||||||
const scrollContainer = document.querySelector('.timeline-wrapper');
|
|
||||||
|
|
||||||
try {
|
if(!this.showLoader) {
|
||||||
scrollContainer.scroll({
|
setTimeout(() => {
|
||||||
top: timelineMarker['offsetTop'] - ((scrollContainer['offsetHeight']/2) - 60),
|
const timelineMarker = document.querySelector('.cal-current-time-marker');
|
||||||
left: 0,
|
const scrollContainer = document.querySelector('.timeline-wrapper');
|
||||||
behavior: 'smooth'
|
|
||||||
})
|
|
||||||
} catch (error) {
|
try {
|
||||||
//
|
scrollContainer.scroll({
|
||||||
this.selectFirstEventOfTheDay();
|
top: timelineMarker['offsetTop'] - ((scrollContainer['offsetHeight']/2) - 60),
|
||||||
}
|
left: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
|
})
|
||||||
|
} catch (error) {
|
||||||
|
//
|
||||||
|
if(!this.showLoader) {
|
||||||
|
this.selectFirstEventOfTheDay();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}, timeout);
|
||||||
|
}
|
||||||
|
|
||||||
}, timeout);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// for timeline
|
// for timeline
|
||||||
|
|||||||
+1
-1
@@ -209,7 +209,7 @@ export class BookMeetingModalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async distartExpedientModal(){
|
async distartExpedientModal() {
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: DiscartExpedientModalPage,
|
component: DiscartExpedientModalPage,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
|||||||
@@ -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{
|
||||||
@@ -203,7 +203,7 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async openEventsToApproveList(profile:any){
|
async openEventsToApproveList(profile:any) {
|
||||||
|
|
||||||
this.closeAllDesktopComponent();
|
this.closeAllDesktopComponent();
|
||||||
//if( window.innerWidth <= 1024){
|
//if( window.innerWidth <= 1024){
|
||||||
|
|||||||
Reference in New Issue
Block a user