diff --git a/Reader/Screens/Read/ReadViewController.swift b/Reader/Screens/Read/ReadViewController.swift index 30aff00..a4e7afe 100644 --- a/Reader/Screens/Read/ReadViewController.swift +++ b/Reader/Screens/Read/ReadViewController.swift @@ -73,6 +73,9 @@ class ReadViewController: UIViewController { // transparent background required to prevent white flash in dark mode, just using .appBackground doesn't work webView.isOpaque = false webView.backgroundColor = .clear + if #available(iOS 16.4, *) { + webView.isInspectable = true + } if #available(iOS 16.0, *) { webView.isFindInteractionEnabled = true } diff --git a/Reader/read.css b/Reader/read.css index 732301c..a347c1f 100644 --- a/Reader/read.css +++ b/Reader/read.css @@ -9,6 +9,11 @@ --dark-background-color: rgb(25, 25, 25); /* .appBackground */ } +/* we want to prevent anything from horizontally overflowing its container */ +* { + max-width: 100%; +} + body { margin: 12px; font-family: ui-serif; @@ -27,10 +32,6 @@ a { color: var(--tint-color); } -img { - max-width: 100%; -} - figure { margin: 0; }