[timeline] sticky header, scroll to hour....

This commit is contained in:
Filip Kaluža committed 2023-01-03 13:25:45 +01:00
1 parent 1fe2bd1c9b
commit affc96fc73
9 files changed
+68 -37

No files matched your search

+8 -6
View File
@@ -35,8 +35,7 @@ export default {
dataLoaded: false,
config: {
date: new Date(),
startHour: 8,
endHour: 16,
scrollHour: 7,
}
}
},
@@ -70,9 +69,7 @@ export default {
time.surname = this.timelineData.surname
})
// format working hours
this.config.startHour = Number(this.timelineData.work_hours_from.split(':')[0]) - 1
this.config.endHour = Number(this.timelineData.work_hours_to.split(':')[0]) + 1
this.config.scrollHour = Number(this.timelineData.work_hours_from.split(':')[0]) - 1
},
triggerToast(message) {
@@ -102,5 +99,10 @@ export default {
.w-loadable
text-align: center
padding-top: 20px
height: 100%
height: calc( 100% - 121px )
@media (max-width: 1312px)
.w-loadable
height: calc( 100% - 202px )
</style>