fixed iOS widget layout
This commit is contained in:
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user