diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 9403f69b9fff..5c00a9e06052 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,5 +1,6 @@ 26.6 ----- +* [*] Fix horizontal insets in Reader article view [#25010] 26.5 diff --git a/WordPress/Classes/ViewRelated/Reader/Detail/ReaderDetailViewController.swift b/WordPress/Classes/ViewRelated/Reader/Detail/ReaderDetailViewController.swift index fa815c1bd501..6cbd3e31b76d 100644 --- a/WordPress/Classes/ViewRelated/Reader/Detail/ReaderDetailViewController.swift +++ b/WordPress/Classes/ViewRelated/Reader/Detail/ReaderDetailViewController.swift @@ -471,8 +471,8 @@ class ReaderDetailViewController: UIViewController, ReaderDetailView { /// Apply view styles @MainActor private func applyStyles() { NSLayoutConstraint.activate([ - webView.rightAnchor.constraint(equalTo: view.readableContentGuide.rightAnchor, constant: -Constants.margin), - webView.leftAnchor.constraint(equalTo: view.readableContentGuide.leftAnchor, constant: Constants.margin) + webView.rightAnchor.constraint(equalTo: view.readableContentGuide.rightAnchor, constant: 0), + webView.leftAnchor.constraint(equalTo: view.readableContentGuide.leftAnchor, constant: 0) ]) webView.translatesAutoresizingMaskIntoConstraints = false @@ -884,7 +884,6 @@ class ReaderDetailViewController: UIViewController, ReaderDetailView { private enum Constants { static let preferredArticleWidth: CGFloat = 680 - static let margin: CGFloat = UIDevice.isPad() ? 0 : 8 } // MARK: - Managed object observer