WIP Настроила размер расписания под сайдбар

This commit is contained in:
Daria Golova
2022-10-24 13:17:08 +03:00
parent 2ff11c29bf
commit 53408d3ac5
3 changed files with 20 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
:current-date="currentDate"
:time-information="timeInformation"
:events-data="eventsData"
:sidebar-width="sidebarWidth"
@previous-date="switchPreviousDate"
@next-date="switchNextDate"
@selected-layout="changeCalendarLayout"
@@ -21,7 +22,7 @@ export default {
components: { CalendarSchedule, CalendarSidebar },
data() {
return {
currentWidth: "152px",
sidebarWidth: "72px",
calendarLayout: "",
currentDate: moment(),
timeInformation: {
@@ -56,7 +57,7 @@ export default {
.then((res) => this.saveEventsData(res));
},
changeWidth(value) {
this.currentWidth = value;
this.sidebarWidth = value;
},
},
mounted() {
@@ -64,3 +65,8 @@ export default {
},
};
</script>
<style lang="sass" scoped>
.calendar-container
width: calc(100vw - 80px)
</style>