Доделала скроллы, зафиксировала хедер

This commit is contained in:
Daria Golova
2022-10-26 16:01:39 +03:00
parent 07df5098b7
commit 7b8db909fc
4 changed files with 24 additions and 32 deletions

View File

@@ -64,17 +64,17 @@ export default {
backgroundHeight() {
return (this.timeCoil.length - 1) * this.pixelsPerHour + 48;
},
horizontalScrollPresence() {
return {
"scroll-x": this.ownersArrayLength > 3 && this.backgroundHeight < 855,
};
},
filteredEventsByDate() {
return this.eventsData.filter(
({ start }) =>
start.slice(0, 10) === this.currentDate.format("YYYY-MM-DD")
);
},
horizontalScrollPresence() {
return {
"scroll-x": this.ownersArrayLength > 3,
};
},
},
methods: {
calculateColumnPosition(elemIndex) {
@@ -95,7 +95,7 @@ export default {
};
},
calculateBackgroundWidth() {
this.backgroundWidth = this.$refs.backgroundWrapper.offsetWidth;
this.backgroundWidth = this.$refs.backgroundWrapper.scrollWidth;
},
filterEventsByOwner(owner) {
let filteredArray = [];
@@ -118,8 +118,7 @@ export default {
<style lang="sass" scoped>
.scroll-x
overflow-x: scroll
overflow-y: hidden
overflow-x: auto
.calendar-background-wrapper
width: 100%