Fix not being able to swipe back from read view

This commit is contained in:
Shadowfacts 2023-07-10 21:42:35 -07:00
parent 8ac578a914
commit f93f778cb2
2 changed files with 8 additions and 4 deletions

View File

@ -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
}

View File

@ -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;
}