Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
fix: a long note under a settings section shows in full instead of ending in an ellipsis
Vojtěch Škopeka6b187684356
diff --git a/tweak/Sources/Settings/SGPageStyle.m b/tweak/Sources/Settings/SGPageStyle.mindex 884277e5..3500823b 100644--- a/tweak/Sources/Settings/SGPageStyle.m+++ b/tweak/Sources/Settings/SGPageStyle.m@@ -144,7 +144,9 @@ UIView *SGSectionHeader(UITableView *table, NSString *title) {static const CGFloat kFooterTop = 8, kFooterBottom = 4;static CGFloat footerTextHeight(UITableView *table, NSString *text) {- CGFloat width = MAX(table.bounds.size.width - 32, 100);+ // An inset grouped table narrows its footers by its side margins, and the label wraps at that width.+ CGFloat inset = table.style == UITableViewStyleInsetGrouped ? table.layoutMargins.left + table.layoutMargins.right : 0;+ CGFloat width = MAX(table.bounds.size.width - inset - 32, 100);return ceil([text boundingRectWithSize:CGSizeMake(width, CGFLOAT_MAX)options:NSStringDrawingUsesLineFragmentOriginattributes:@{NSFontAttributeName: SGSubtitleFont()}