mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
Merge 67433abb63 into 6e370e06d1
This commit is contained in:
commit
7c01aa9773
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue