fixed iOS widget layout

This commit is contained in:
Marianum
2026-05-13 16:09:43 +02:00
parent d8a5ccfe80
commit 58fb843f3d
4 changed files with 80 additions and 30 deletions
@@ -20,7 +20,11 @@ struct TimetableDayWidget: Widget {
}
.configurationDisplayName("Marianum · Heute")
.description("Stundenplan und Vertretungen für den anstehenden Schultag.")
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
// Only .systemLarge: iOS gives us no tall-portrait family, so the
// 162×162 .systemSmall can't fit a readable 11-period day grid,
// and .systemMedium is short-wide which crunches the labels.
// Single useful size beats three crippled ones.
.supportedFamilies([.systemLarge])
}
}
@@ -56,7 +60,10 @@ struct TimetableWeekWidget: Widget {
}
.configurationDisplayName("Marianum · Woche")
.description("Stundenplan und Vertretungen für die ganze Schulwoche.")
.supportedFamilies([.systemMedium, .systemLarge, .systemExtraLarge])
// .systemMedium is dropped 5 day columns plus a time-label column
// in a 4×2 cell-strip yields per-column widths well below the
// subject-only threshold and the labels in the time sidebar overlap.
.supportedFamilies([.systemLarge, .systemExtraLarge])
}
}