diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 42c9fc1440..db9ab206be 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -10076,3 +10076,5 @@ Sorry for the inconvenience."; "Stats.Boosts.PremiumSubscribers" = "Premium Subscribers"; "Stats.Boosts.ExistingBoosts" = "Existing Boosts"; "Stats.Boosts.BoostsToLevelUp" = "Boosts to Level Up"; + +"MediaEditor.RemoveAudio" = "Remove Audio"; diff --git a/submodules/TelegramUI/Components/MediaEditorScreen/Sources/MediaEditorScreen.swift b/submodules/TelegramUI/Components/MediaEditorScreen/Sources/MediaEditorScreen.swift index 8b9dae2eb0..3dc311829f 100644 --- a/submodules/TelegramUI/Components/MediaEditorScreen/Sources/MediaEditorScreen.swift +++ b/submodules/TelegramUI/Components/MediaEditorScreen/Sources/MediaEditorScreen.swift @@ -3283,7 +3283,7 @@ public final class MediaEditorScreen: ViewController, UIDropInteractionDelegate }), false), .action( ContextMenuActionItem( - text: "Remove Audio", + text: self.presentationData.strings.MediaEditor_RemoveAudio, icon: { theme in return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Delete"), color: theme.contextMenu.primaryColor)}, action: { [weak self] f in f.dismissWithResult(.default) diff --git a/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift b/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift index d431ca6c33..7bdc8a6b11 100644 --- a/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift +++ b/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift @@ -622,10 +622,10 @@ final class VideoScrubberComponent: Component { if self.audioScrollView.contentSize != contentSize || audioChanged { self.audioScrollView.contentSize = contentSize if !component.audioOnly { - let leftInset = scrubberSize.width + let leftInset = scrubberSize.width - handleWidth * 2.5 let rightInset: CGFloat if self.audioScrollView.contentSize.width > self.audioScrollView.frame.width { - rightInset = scrubberSize.width + rightInset = scrubberSize.width - handleWidth * 2.5 } else { rightInset = self.audioScrollView.frame.width - self.audioScrollView.contentSize.width }