Fix not being able to swipe back from read view
This commit is contained in:
parent
8ac578a914
commit
f93f778cb2
|
@ -73,6 +73,9 @@ class ReadViewController: UIViewController {
|
||||||
// transparent background required to prevent white flash in dark mode, just using .appBackground doesn't work
|
// transparent background required to prevent white flash in dark mode, just using .appBackground doesn't work
|
||||||
webView.isOpaque = false
|
webView.isOpaque = false
|
||||||
webView.backgroundColor = .clear
|
webView.backgroundColor = .clear
|
||||||
|
if #available(iOS 16.4, *) {
|
||||||
|
webView.isInspectable = true
|
||||||
|
}
|
||||||
if #available(iOS 16.0, *) {
|
if #available(iOS 16.0, *) {
|
||||||
webView.isFindInteractionEnabled = true
|
webView.isFindInteractionEnabled = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
--dark-background-color: rgb(25, 25, 25); /* .appBackground */
|
--dark-background-color: rgb(25, 25, 25); /* .appBackground */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* we want to prevent anything from horizontally overflowing its container */
|
||||||
|
* {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 12px;
|
margin: 12px;
|
||||||
font-family: ui-serif;
|
font-family: ui-serif;
|
||||||
|
@ -27,10 +32,6 @@ a {
|
||||||
color: var(--tint-color);
|
color: var(--tint-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue