From 34ff4d1f16ca107efc256881f2aae34b2c319d61 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Thu, 28 Aug 2025 02:55:00 +0400 Subject: [PATCH] Various improvements --- Telegram/Telegram-iOS/en.lproj/Localizable.strings | 2 +- .../PeerInfo/PeerInfoScreen/Sources/PeerInfoHeaderNode.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index e26d1f0ab1..7949042e9f 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -14951,7 +14951,7 @@ Sorry for the inconvenience."; "MediaPlayer.ContextMenu.SaveTo.Profile" = "Profile"; "MediaPlayer.ContextMenu.SaveTo.SavedMessages" = "Saved Messages"; "MediaPlayer.ContextMenu.SaveTo.Files" = "Files"; -"MediaPlayer.ContextMenu.SaveTo.Info" = "Save to Files"; +"MediaPlayer.ContextMenu.SaveTo.Info" = "Choose where you want this audio to be saved."; "MediaPlayer.ContextMenu.ShowInChat" = "Show in Chat"; "MediaPlayer.ContextMenu.Forward" = "Forward"; "MediaPlayer.ContextMenu.Delete" = "Delete"; diff --git a/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoHeaderNode.swift b/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoHeaderNode.swift index 1eaa5836e7..59df90ccd2 100644 --- a/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoHeaderNode.swift +++ b/submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoHeaderNode.swift @@ -596,7 +596,7 @@ final class PeerInfoHeaderNode: ASDisplayNode { currentSavedMusic = cachedUserData.savedMusic } } - let musicHeight: CGFloat = hasBackground ? 24.0 : 16.0 + let musicHeight: CGFloat = hasBackground || self.isAvatarExpanded ? 24.0 : 16.0 let bottomInset: CGFloat = currentSavedMusic != nil ? musicHeight : 0.0 let isLandscape = containerInset > 16.0 @@ -2698,7 +2698,7 @@ final class PeerInfoHeaderNode: ASDisplayNode { environment: {}, containerSize: CGSize(width: backgroundFrame.width, height: musicHeight) ) - let musicFrame = CGRect(origin: CGPoint(x: 0.0, y: (apparentBackgroundHeight - backgroundHeight) + backgroundHeight - musicHeight - (hasBackground ? 0.0 : 4.0)), size: musicSize) + let musicFrame = CGRect(origin: CGPoint(x: 0.0, y: (apparentBackgroundHeight - backgroundHeight) + backgroundHeight - musicHeight - (hasBackground || self.isAvatarExpanded ? 0.0 : 4.0)), size: musicSize) if let musicView = music.view { if musicView.superview == nil { self.regularContentNode.view.addSubview(musicView)