From b6a277cabf9e255acd0a8db300d74c891d9c6f59 Mon Sep 17 00:00:00 2001 From: count0 Date: Tue, 14 Oct 2025 23:27:27 +0200 Subject: [PATCH] move the day labels to the right --- src/components/HabitGrid.jsx | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/components/HabitGrid.jsx b/src/components/HabitGrid.jsx index e206766..5a1d772 100644 --- a/src/components/HabitGrid.jsx +++ b/src/components/HabitGrid.jsx @@ -53,19 +53,6 @@ const HabitGrid = ({ habit, onUpdate, fullView = false }) => {
- {/* Weekday labels: Monday (top) to Sunday (bottom) */} -
-
- {[1, 2, 3, 4, 5, 6, 0].map((day) => ( -
- {getWeekdayLabel(day)} -
- ))} -
- {/* Grid: Monday (top) to Sunday (bottom) */} {weeks.map((week, weekIndex) => (
@@ -100,6 +87,18 @@ const HabitGrid = ({ habit, onUpdate, fullView = false }) => { })}
))} + {/* Weekday labels: Monday (top) to Sunday (bottom) */} +
+
+ {[1, 2, 3, 4, 5, 6, 0].map((day) => ( +
+ {getWeekdayLabel(day)} +
+ ))} +