This commit is contained in:
Anukar 2026-06-10 00:01:57 +04:00 committed by GitHub
commit 7c01aa9773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1705,6 +1705,8 @@ final class StorageUsageScreenComponent: Component {
}
let totalLabelFrame = CGRect(origin: CGPoint(x: pieChartFrame.minX + floor((pieChartFrame.width - chartTotalLabelSize.width) / 2.0), y: pieChartFrame.minY + floor((pieChartFrame.height - chartTotalLabelSize.height) / 2.0)), size: chartTotalLabelSize)
transition.setFrame(view: chartTotalLabelView, frame: totalLabelFrame)
// Hide the size label when storage is cleared to avoid overlap with checkmark
chartTotalLabelView.isHidden = listCategories.isEmpty
transition.setAlpha(view: chartTotalLabelView, alpha: listCategories.isEmpty ? 0.0 : 1.0)
}
}