fix: adjust calendar widget size to enforce 170x170 dimensions

This commit is contained in:
tr1x_em committed 2025-08-04 11:07:46 +05:30
1 parent 30f0233a71
commit fed1d8dc12
2 files changed
+29 -27

No files matched your search

+3 -3
View File
@@ -494,7 +494,7 @@ class Calendar(Box):
name="calendar-days-header",
orientation="h",
h_expand=True,
# spacing=4
spacing=2
)
day_names = ["S", "M", "T", "W", "T", "F", "S"]
@@ -517,7 +517,7 @@ class Calendar(Box):
self.calendar_grid = Box(
name="calendar-grid",
orientation="v",
# spacing=3
spacing=1
)
self.update_calendar()
@@ -556,7 +556,7 @@ class Calendar(Box):
cal = calendar.monthcalendar(self.current_year, self.current_month)
for week in cal:
week_box = Box(orientation="h", spacing=4, h_expand=True)
week_box = Box(orientation="h", spacing=2, h_expand=True)
for day_index, day in enumerate(week):
if day == 0: