Various improvements

This commit is contained in:
Ilya Laktyushin 2025-08-28 02:55:00 +04:00
parent 1802a28686
commit 34ff4d1f16
2 changed files with 3 additions and 3 deletions

View File

@ -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";

View File

@ -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)