From 371ec63cc7f54e2e267cc6f57a06eda5f23bd7e4 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 17 Mar 2025 14:27:27 +0400 Subject: [PATCH] Fix --- .../Gifts/GiftItemComponent/Sources/GiftItemComponent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/Gifts/GiftItemComponent/Sources/GiftItemComponent.swift b/submodules/TelegramUI/Components/Gifts/GiftItemComponent/Sources/GiftItemComponent.swift index ba9943ac71..81ffcdae4f 100644 --- a/submodules/TelegramUI/Components/Gifts/GiftItemComponent/Sources/GiftItemComponent.swift +++ b/submodules/TelegramUI/Components/Gifts/GiftItemComponent/Sources/GiftItemComponent.swift @@ -293,7 +293,7 @@ public final class GiftItemComponent: Component { cornerRadius = 10.0 case .profile: size = availableSize - let side = floor(88.0 * availableSize.width / 116.0) + let side = floor(88.0 * availableSize.height / 116.0) iconSize = CGSize(width: side, height: side) cornerRadius = 10.0 case .thumbnail: