mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
5be0000735
commit
2edb4daed1
@ -10076,3 +10076,5 @@ Sorry for the inconvenience.";
|
|||||||
"Stats.Boosts.PremiumSubscribers" = "Premium Subscribers";
|
"Stats.Boosts.PremiumSubscribers" = "Premium Subscribers";
|
||||||
"Stats.Boosts.ExistingBoosts" = "Existing Boosts";
|
"Stats.Boosts.ExistingBoosts" = "Existing Boosts";
|
||||||
"Stats.Boosts.BoostsToLevelUp" = "Boosts to Level Up";
|
"Stats.Boosts.BoostsToLevelUp" = "Boosts to Level Up";
|
||||||
|
|
||||||
|
"MediaEditor.RemoveAudio" = "Remove Audio";
|
||||||
|
@ -3283,7 +3283,7 @@ public final class MediaEditorScreen: ViewController, UIDropInteractionDelegate
|
|||||||
}), false),
|
}), false),
|
||||||
.action(
|
.action(
|
||||||
ContextMenuActionItem(
|
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)},
|
icon: { theme in return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Delete"), color: theme.contextMenu.primaryColor)},
|
||||||
action: { [weak self] f in
|
action: { [weak self] f in
|
||||||
f.dismissWithResult(.default)
|
f.dismissWithResult(.default)
|
||||||
|
@ -622,10 +622,10 @@ final class VideoScrubberComponent: Component {
|
|||||||
if self.audioScrollView.contentSize != contentSize || audioChanged {
|
if self.audioScrollView.contentSize != contentSize || audioChanged {
|
||||||
self.audioScrollView.contentSize = contentSize
|
self.audioScrollView.contentSize = contentSize
|
||||||
if !component.audioOnly {
|
if !component.audioOnly {
|
||||||
let leftInset = scrubberSize.width
|
let leftInset = scrubberSize.width - handleWidth * 2.5
|
||||||
let rightInset: CGFloat
|
let rightInset: CGFloat
|
||||||
if self.audioScrollView.contentSize.width > self.audioScrollView.frame.width {
|
if self.audioScrollView.contentSize.width > self.audioScrollView.frame.width {
|
||||||
rightInset = scrubberSize.width
|
rightInset = scrubberSize.width - handleWidth * 2.5
|
||||||
} else {
|
} else {
|
||||||
rightInset = self.audioScrollView.frame.width - self.audioScrollView.contentSize.width
|
rightInset = self.audioScrollView.frame.width - self.audioScrollView.contentSize.width
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user