diff --git a/CHANGES.rst b/CHANGES.rst index ad5778db2..6522acffc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -24,7 +24,8 @@ Changes to be released in next version * VoIP: Handle application inactive state too for VoIP pushes (#4269). * VoIP: Do not terminate the app if protected data not available (#4419). * KeyVerification: Listen for request state changes and show QR reader option when it's ready. - * HomeViewController: Don't clip the home view when searching for rooms on iPhone 12 Pro Max (#4450) + * NSE: Recreate background sync service if credentials changed (#3695). + * HomeViewController: Don't clip the home view when searching for rooms on iPhone 12 Pro Max (#4450). ⚠️ API Changes * diff --git a/Riot/Categories/UIButton.swift b/Riot/Categories/UIButton.swift index 0e3af78ef..6f896bb58 100644 --- a/Riot/Categories/UIButton.swift +++ b/Riot/Categories/UIButton.swift @@ -40,4 +40,15 @@ extension UIButton { let image = UIImage.vc_image(from: color) self.setBackgroundImage(image, for: state) } + + /// Shortcut to button label property `adjustsFontForContentSizeCategory` + @IBInspectable + var vc_adjustsFontForContentSizeCategory: Bool { + get { + return self.titleLabel?.adjustsFontForContentSizeCategory ?? false + } + set { + self.titleLabel?.adjustsFontForContentSizeCategory = newValue + } + } } diff --git a/Riot/Modules/SideMenu/SideMenuActionView.swift b/Riot/Modules/SideMenu/SideMenuActionView.swift index 6d4dc27a6..72ff6a852 100644 --- a/Riot/Modules/SideMenu/SideMenuActionView.swift +++ b/Riot/Modules/SideMenu/SideMenuActionView.swift @@ -53,6 +53,7 @@ final class SideMenuActionView: UIView, NibOwnerLoadable { private func commonInit() { self.button.contentHorizontalAlignment = .left + self.button.titleLabel?.lineBreakMode = .byTruncatingTail } convenience init() { diff --git a/Riot/Modules/SideMenu/SideMenuActionView.xib b/Riot/Modules/SideMenu/SideMenuActionView.xib index b1ea1a367..c23367b54 100644 --- a/Riot/Modules/SideMenu/SideMenuActionView.xib +++ b/Riot/Modules/SideMenu/SideMenuActionView.xib @@ -21,11 +21,17 @@