From 9aad5edb95fc2ede028bd02b8f00cde32d11bd0b Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 29 Oct 2024 22:36:52 +0400 Subject: [PATCH] Tune gift icon size --- .../Sources/PeerInfoPaneContainerNode.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoPaneContainerNode.swift b/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoPaneContainerNode.swift index 46f8f53d00..11dfd6ca0e 100644 --- a/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoPaneContainerNode.swift +++ b/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoPaneContainerNode.swift @@ -74,7 +74,7 @@ final class PeerInfoPaneTabsContainerPaneNode: ASDisplayNode { if !icons.isEmpty { if self.iconLayers.isEmpty { for icon in icons { - let iconSize = CGSize(width: 24.0, height: 24.0) + let iconSize = CGSize(width: 18.0, height: 18.0) let emoji = ChatTextInputTextCustomEmojiAttribute( interactivelySelectedFromPackId: nil, @@ -121,11 +121,11 @@ final class PeerInfoPaneTabsContainerPaneNode: ASDisplayNode { totalWidth = titleSize.width if !self.iconLayers.isEmpty { - totalWidth += 1.0 - let iconSize = CGSize(width: 24.0, height: 24.0) + totalWidth += 2.0 + let iconSize = CGSize(width: 18.0, height: 18.0) let spacing: CGFloat = 1.0 for iconlayer in self.iconLayers { - iconlayer.frame = CGRect(origin: CGPoint(x: totalWidth, y: 12.0), size: iconSize) + iconlayer.frame = CGRect(origin: CGPoint(x: totalWidth, y: 15.0), size: iconSize) totalWidth += iconSize.width + spacing } totalWidth -= spacing