Skip to content

Commit

Permalink
Fixed some calendar bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurjonees committed Sep 22, 2024
1 parent b9d0915 commit 3b5ab3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/planner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ export class Calendar {
this.render()
}
)

onTaskEvent(_ => this.render(), true, true, false)
}

private shiftMonth(by: number) {
Expand Down Expand Up @@ -483,6 +485,7 @@ class CalendarDay {
var element = document.createElement("div")
// Load tasks
var tasks = this.taskMgr.getTasks().filter(t => {
if (t.deleted) { return }
return isSameDay(this.date, t.due)
})
// Add tasks to element
Expand Down Expand Up @@ -512,6 +515,7 @@ class CalendarDay {
})
// add checkboxes
tasks.forEach(t => {
if (t.deleted) { return }
this.element!.appendChild(t.getTaskCheckbox())
})

Expand Down
2 changes: 2 additions & 0 deletions src/styles/planner.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ button.plannershift {

color: var(--primary-text-color);

cursor: pointer;

border: none;

text-shadow: 0 0 0.25rem var(--primary-shadow-color);
Expand Down

0 comments on commit 3b5ab3d

Please sign in to comment.