Render dashboard detail text

This commit is contained in:
Meta Vens 2026-05-31 01:35:42 +01:00
commit 08645f1650
2 changed files with 21 additions and 4 deletions

View file

@ -620,10 +620,23 @@ static int64_t EVEHostTimeNowNs(void) {
UILabel *label = (UILabel *)[view viewWithTag:1001];
if ([label isKindOfClass:UILabel.class]) {
label.text = [NSString stringWithFormat:@"%@\n%@ %@",
node[@"label"] ?: nodeId,
node[@"kind"] ?: @"source",
node[@"health"] ?: @""];
NSString *detail = [node[@"detail"] isKindOfClass:NSString.class] ? node[@"detail"] : @"";
if (detail.length > 0) {
label.text = [NSString stringWithFormat:@"%@\n%@ %@\n%@",
node[@"label"] ?: nodeId,
node[@"kind"] ?: @"source",
node[@"health"] ?: @"",
detail];
label.font = [UIFont monospacedSystemFontOfSize:10.0 weight:UIFontWeightMedium];
label.numberOfLines = 6;
} else {
label.text = [NSString stringWithFormat:@"%@\n%@ %@",
node[@"label"] ?: nodeId,
node[@"kind"] ?: @"source",
node[@"health"] ?: @""];
label.font = [UIFont monospacedSystemFontOfSize:12.0 weight:UIFontWeightMedium];
label.numberOfLines = 3;
}
}
}