fix month grid

This commit is contained in:
marlon-erler
2024-07-19 13:11:56 +02:00
parent 838aecd2c7
commit 3112bd9d9c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1795,7 +1795,7 @@
/* @__PURE__ */ createElement("b", { class: "secondary ellipsis width-100" }, translation.weekdays[i])
);
}
const monthOffset = currentDate.getDay() - 1;
const monthOffset = currentDate.getDay();
for (let i = 0; i < monthOffset; i++) {
monthGridCells.value.push(/* @__PURE__ */ createElement("div", null));
}
+1 -1
View File
@@ -70,7 +70,7 @@ export function CalendarView(
}
// create blank dates starting sunday
const monthOffset = currentDate.getDay() - 1;
const monthOffset = currentDate.getDay();
for (let i = 0; i < monthOffset; i++) {
monthGridCells.value.push(<div></div>);
}