wip
This commit is contained in:
parent
61b777b61c
commit
d27116c0dd
3 changed files with 8 additions and 12 deletions
|
|
@ -889,6 +889,11 @@ swp-schedule-scroll {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Når drawer er åben: giv plads til drawer med margin */
|
||||||
|
body.schedule-drawer-open swp-schedule-scroll {
|
||||||
|
margin-right: var(--drawer-width, 420px);
|
||||||
|
}
|
||||||
|
|
||||||
/* ===========================================
|
/* ===========================================
|
||||||
WORK SCHEDULE TABLE
|
WORK SCHEDULE TABLE
|
||||||
=========================================== */
|
=========================================== */
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1025,12 +1025,11 @@ class ScheduleController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the schedule drawer
|
* Open the schedule drawer (no overlay - user can still interact with table)
|
||||||
*/
|
*/
|
||||||
private openDrawer(): void {
|
private openDrawer(): void {
|
||||||
this.drawer?.classList.add('open');
|
this.drawer?.classList.add('open');
|
||||||
document.getElementById('drawerOverlay')?.classList.add('active');
|
document.body.classList.add('schedule-drawer-open');
|
||||||
document.body.style.overflow = 'hidden';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -1038,7 +1037,6 @@ class ScheduleController {
|
||||||
*/
|
*/
|
||||||
private closeDrawer(): void {
|
private closeDrawer(): void {
|
||||||
this.drawer?.classList.remove('open');
|
this.drawer?.classList.remove('open');
|
||||||
document.getElementById('drawerOverlay')?.classList.remove('active');
|
document.body.classList.remove('schedule-drawer-open');
|
||||||
document.body.style.overflow = '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue