fix month grid
This commit is contained in:
Vendored
+1
-1
@@ -1795,7 +1795,7 @@
|
|||||||
/* @__PURE__ */ createElement("b", { class: "secondary ellipsis width-100" }, translation.weekdays[i])
|
/* @__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++) {
|
for (let i = 0; i < monthOffset; i++) {
|
||||||
monthGridCells.value.push(/* @__PURE__ */ createElement("div", null));
|
monthGridCells.value.push(/* @__PURE__ */ createElement("div", null));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export function CalendarView(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create blank dates starting sunday
|
// create blank dates starting sunday
|
||||||
const monthOffset = currentDate.getDay() - 1;
|
const monthOffset = currentDate.getDay();
|
||||||
for (let i = 0; i < monthOffset; i++) {
|
for (let i = 0; i < monthOffset; i++) {
|
||||||
monthGridCells.value.push(<div></div>);
|
monthGridCells.value.push(<div></div>);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user