mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various fixes
This commit is contained in:
parent
131736b966
commit
57cd122d7f
3 changed files with 9 additions and 5 deletions
|
|
@ -2561,6 +2561,9 @@ private final class PremiumIntroScreenContentComponent: CombinedComponent {
|
|||
}
|
||||
|
||||
size.height += scrollEnvironment.insets.bottom
|
||||
if case .business = context.component.mode, state.isPremium == false {
|
||||
size.height += 123.0
|
||||
}
|
||||
|
||||
if context.component.source != .settings {
|
||||
size.height += 44.0
|
||||
|
|
|
|||
|
|
@ -884,7 +884,7 @@ public class PremiumLimitsListScreen: ViewController {
|
|||
context: context,
|
||||
position: .top,
|
||||
model: .island,
|
||||
videoFile: configuration.videos["greeting_message"],
|
||||
videoFile: configuration.videos["quick_replies"],
|
||||
decoration: .business
|
||||
)),
|
||||
title: strings.Business_QuickReplies,
|
||||
|
|
|
|||
|
|
@ -321,15 +321,16 @@ public final class ListActionItemComponent: Component {
|
|||
var arrowTransition = transition
|
||||
if let current = self.arrowView {
|
||||
arrowView = current
|
||||
if themeUpdated {
|
||||
arrowView.image = PresentationResourcesItemList.disclosureArrowImage(component.theme)
|
||||
}
|
||||
} else {
|
||||
arrowTransition = arrowTransition.withAnimation(.none)
|
||||
arrowView = UIImageView(image: PresentationResourcesItemList.disclosureArrowImage(component.theme)?.withRenderingMode(.alwaysTemplate))
|
||||
arrowView = UIImageView(image: PresentationResourcesItemList.disclosureArrowImage(component.theme))
|
||||
self.arrowView = arrowView
|
||||
self.addSubview(arrowView)
|
||||
}
|
||||
|
||||
arrowView.tintColor = component.theme.list.disclosureArrowColor
|
||||
|
||||
|
||||
if let image = arrowView.image {
|
||||
let arrowFrame = CGRect(origin: CGPoint(x: availableSize.width - 7.0 - image.size.width, y: floor((contentHeight - image.size.height) * 0.5)), size: image.size)
|
||||
arrowTransition.setFrame(view: arrowView, frame: arrowFrame)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue