Skip to content

Commit df21082

Browse files
committed
Fix horizontal insets in Reader article view
1 parent 696fef0 commit df21082

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
26.6
22
-----
3+
* [*] Fix horizontal insets in Reader article view [#25010]
34

45

56
26.5

WordPress/Classes/ViewRelated/Reader/Detail/ReaderDetailViewController.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ class ReaderDetailViewController: UIViewController, ReaderDetailView {
471471
/// Apply view styles
472472
@MainActor private func applyStyles() {
473473
NSLayoutConstraint.activate([
474-
webView.rightAnchor.constraint(equalTo: view.readableContentGuide.rightAnchor, constant: -Constants.margin),
475-
webView.leftAnchor.constraint(equalTo: view.readableContentGuide.leftAnchor, constant: Constants.margin)
474+
webView.rightAnchor.constraint(equalTo: view.readableContentGuide.rightAnchor, constant: 0),
475+
webView.leftAnchor.constraint(equalTo: view.readableContentGuide.leftAnchor, constant: 0)
476476
])
477477

478478
webView.translatesAutoresizingMaskIntoConstraints = false
@@ -884,7 +884,6 @@ class ReaderDetailViewController: UIViewController, ReaderDetailView {
884884

885885
private enum Constants {
886886
static let preferredArticleWidth: CGFloat = 680
887-
static let margin: CGFloat = UIDevice.isPad() ? 0 : 8
888887
}
889888

890889
// MARK: - Managed object observer

0 commit comments

Comments
 (0)