From 7c9f57f26603b73d11b5d6a9985aa1f116e4bed6 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 17 Nov 2024 04:11:42 +0400 Subject: [PATCH] Various improvements --- .../Gifts/GiftViewScreen/Sources/GiftViewScreen.swift | 2 +- submodules/WebUI/Sources/FullscreenControlsComponent.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramUI/Components/Gifts/GiftViewScreen/Sources/GiftViewScreen.swift b/submodules/TelegramUI/Components/Gifts/GiftViewScreen/Sources/GiftViewScreen.swift index e743cf3175..54ef391e71 100644 --- a/submodules/TelegramUI/Components/Gifts/GiftViewScreen/Sources/GiftViewScreen.swift +++ b/submodules/TelegramUI/Components/Gifts/GiftViewScreen/Sources/GiftViewScreen.swift @@ -335,7 +335,7 @@ private final class GiftViewSheetContent: CombinedComponent { 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 ) context.add(description diff --git a/submodules/WebUI/Sources/FullscreenControlsComponent.swift b/submodules/WebUI/Sources/FullscreenControlsComponent.swift index a055b51e1d..e7a693b4b9 100644 --- a/submodules/WebUI/Sources/FullscreenControlsComponent.swift +++ b/submodules/WebUI/Sources/FullscreenControlsComponent.swift @@ -205,7 +205,7 @@ final class FullscreenControlsComponent: Component { let buttonTitleUpdated = (previousComponent?.hasBack ?? false) != component.hasBack let animationMultiplier = !component.hasBack ? -1.0 : 1.0 - if buttonTitleUpdated { + if buttonTitleUpdated && !self.displayTitle { isAnimatingTextTransition = true if let view = self.buttonTitle.view, let snapshotView = view.snapshotView(afterScreenUpdates: false) {