Various improvements

This commit is contained in:
Ilya Laktyushin
2024-11-17 04:11:42 +04:00
parent cc60d82515
commit 7c9f57f266
2 changed files with 2 additions and 2 deletions

View File

@@ -335,7 +335,7 @@ private final class GiftViewSheetContent: CombinedComponent {
component.openStarsIntro() component.openStarsIntro()
} }
), ),
availableSize: CGSize(width: context.availableSize.width - sideInset * 2.0 - 60.0, height: CGFloat.greatestFiniteMagnitude), availableSize: CGSize(width: context.availableSize.width - sideInset * 2.0 - 50.0, height: CGFloat.greatestFiniteMagnitude),
transition: .immediate transition: .immediate
) )
context.add(description context.add(description

View File

@@ -205,7 +205,7 @@ final class FullscreenControlsComponent: Component {
let buttonTitleUpdated = (previousComponent?.hasBack ?? false) != component.hasBack let buttonTitleUpdated = (previousComponent?.hasBack ?? false) != component.hasBack
let animationMultiplier = !component.hasBack ? -1.0 : 1.0 let animationMultiplier = !component.hasBack ? -1.0 : 1.0
if buttonTitleUpdated { if buttonTitleUpdated && !self.displayTitle {
isAnimatingTextTransition = true isAnimatingTextTransition = true
if let view = self.buttonTitle.view, let snapshotView = view.snapshotView(afterScreenUpdates: false) { if let view = self.buttonTitle.view, let snapshotView = view.snapshotView(afterScreenUpdates: false) {