MESSENGER-4157 Better Texts for downtime warnings

This commit is contained in:
Frank Rotermund
2023-03-01 08:47:25 +01:00
parent e5ba82b699
commit 116c6e54b9
6 changed files with 43 additions and 17 deletions
@@ -2981,7 +2981,13 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
downtimeCell.textLabel.text = [self bwiDowntimeCellText];
downtimeCell.textLabel.textColor = [self bwiDowntimeTextColor];
downtimeCell.textLabel.lineBreakMode = NSLineBreakByWordWrapping;
downtimeCell.textLabel.numberOfLines = 5;
// bwi: with descriptions coming soon we need to do this dynamically
if ([[[ServerDowntimeDefaultService alloc] init] isSameDay]) {
downtimeCell.textLabel.numberOfLines = 6;
} else {
downtimeCell.textLabel.numberOfLines = 7;
}
cell = downtimeCell;
}