mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Various improvements
This commit is contained in:
parent
1802a28686
commit
34ff4d1f16
@ -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";
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user