Finetuning of available space

This commit is contained in:
2026-07-11 22:39:15 +02:00
parent ee814c4afe
commit 13e58355da
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1223,7 +1223,8 @@ display:
const int first_weekday = weekday_monday(year, month, 1);
const int month_days = days_in_month(year, month);
for (int row = 0; row < 6; row++) {
const int calendar_rows = (first_weekday + month_days + 6) / 7;
for (int row = 0; row < calendar_rows; row++) {
const int monday_day = 1 - first_weekday + row * 7;
int week_year = year;
int week_month = month;
+2 -2
View File
@@ -6,8 +6,8 @@ CALENDAR_NAMES = {
DAY_NAMES = ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"]
MAX_ENTRIES = 8
# Reserve the right side of each row for start and end times.
MAX_TITLE_LENGTH = 19
MAX_META_LENGTH = 28
MAX_TITLE_LENGTH = 25
MAX_META_LENGTH = 35
def shorten(value, maximum):