From 709f3f43d5e8810479a290a6d70fa69dbc849a7f Mon Sep 17 00:00:00 2001 From: fatih Date: Tue, 22 Aug 2023 01:39:05 +0300 Subject: [PATCH] reduce task title high on movie --- .../page/home/parts/calendar/presenter.js | 109 ------------------ src/view/page/home/parts/calendar/style.scss | 5 + 2 files changed, 5 insertions(+), 109 deletions(-) delete mode 100644 src/view/page/home/parts/calendar/presenter.js diff --git a/src/view/page/home/parts/calendar/presenter.js b/src/view/page/home/parts/calendar/presenter.js deleted file mode 100644 index b54382c..0000000 --- a/src/view/page/home/parts/calendar/presenter.js +++ /dev/null @@ -1,109 +0,0 @@ -// /* eslint-disable no-unused-vars */ -// import TaskStore from "storage/task-storage"; -// /* eslint-enable no-unused-vars */ -// import { TIME_PERIODS } from "model/enums"; -// import check from "utils/check"; -// import JustDate from "utils/just-date"; -// import logPresenter from "view/log/presenter"; -// //TODO refactor class to object -// /** -// * -// */ -// class CalendarPresenter { -// /** -// * @param {} state -// * @param {} pushState -// * @param {TaskStore} taskStorage -// */ -// constructor(pushState, taskStorage) { -// this.pushState = pushState; -// this.taskStorage = taskStorage; -// } - -// async loadCalender({ start, end } = {}) { - -// this.pushState({ message: { text: "loading calendar." } }); - -// // if (!start || !end) { -// // const today = new JustDate(); -// // start = today.startOfMonth().date(); -// // end = today.endOfMonth().date(); -// // } -// // const calendar = await this.taskStorage.getCalendar(start, end); -// const timePeriod = localStorage.getItem('time-period') ?? TIME_PERIODS.WEEK; -// this.setTimePeriod({ startDate: start, timePeriod }); -// } - -// async goToNext({ startDate, timePeriod = TIME_PERIODS.MONTH }) { - -// const current = new JustDate(startDate); -// const nextPeriodStart = current.endOf(timePeriod).next(); -// const nextPeriodEnd = nextPeriodStart.endOf(timePeriod); -// const calendar = await this.taskStorage.getCalendar(nextPeriodStart.date(), nextPeriodEnd.date()); - -// this.pushState({ -// calendar, -// startDate: nextPeriodStart.date(), -// message: { text: "completed" } -// }); -// } - -// async goToBefore({ startDate, timePeriod = TIME_PERIODS.MONTH }) { -// const current = new JustDate(startDate); -// const previousPeriodEnd = current.startOf(timePeriod).previous(); -// const previousPeriodStart = previousPeriodEnd.startOf(timePeriod); -// const calendar = await this.taskStorage.getCalendar(previousPeriodStart.date(), previousPeriodEnd.date()); - -// this.pushState({ -// calendar, -// startDate: previousPeriodStart.date(), -// message: { text: "completed" } -// }); -// } - -// // todo rename -// async goToNow({ timePeriod = TIME_PERIODS.MONTH }) { - -// const current = new JustDate(); -// const currentPeriodStart = current.startOf(timePeriod); -// const currentPeriodEnd = current.endOf(timePeriod); -// const calendar = await this.taskStorage.getCalendar(currentPeriodStart.date(), currentPeriodEnd.date()); - -// this.pushState({ -// calendar, -// startDate: currentPeriodStart.date(), -// message: { text: "completed" } -// }); -// } - -// async setTimePeriod({ startDate, timePeriod = TIME_PERIODS.MONTH }) { -// const current = new JustDate(); -// const end = current.endOf(timePeriod); -// const start = current.startOf(timePeriod); -// const calendar = await this.taskStorage.getCalendar(start.date(), end.date()); -// localStorage.setItem('time-period', timePeriod); -// this.pushState({ -// calendar, -// startDate, -// message: { text: "completed" }, -// timePeriod -// }); -// } - -// openLog({ selectedTask, selectedLog }) { -// check.notNull(selectedLog); -// if (selectedTask.subtasks && selectedTask.subtasks.length > 0) { -// this.pushState({ selectedTask, selectedLog, isLogVisible: true }); -// } -// else { -// logPresenter.setTaskToNextState({ log: selectedLog, task: selectedTask }, this.taskStorage, this.pushState); -// } -// } - -// openTaskEdit({ selectedTask }) { -// this.pushState({ isEditTaskVisible: true, selectedTask: selectedTask }); -// } - -// }; - -// export default CalendarPresenter; diff --git a/src/view/page/home/parts/calendar/style.scss b/src/view/page/home/parts/calendar/style.scss index 39223bc..9fdb0cd 100644 --- a/src/view/page/home/parts/calendar/style.scss +++ b/src/view/page/home/parts/calendar/style.scss @@ -107,6 +107,7 @@ background-color: transparent; justify-content: space-between; align-self: end; + button { height: 40px; padding-left: 7px; @@ -243,4 +244,8 @@ a:active { .day-task-header { font-weight: 500; + + @media (max-width: 768px) { + height: $tile-size*0.7 !important; + } } \ No newline at end of file