diff --git a/src/app/App.svelte b/src/app/App.svelte index ea20d80c..47d4f995 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -2,6 +2,8 @@ import icon from "./img/icon.png"; import logo from "./img/logo.svg?raw"; + const baseUrl = "https://github.com/quoid/userscripts"; + let version = "v0.0.0"; let build = "(0)"; let directory = "init"; @@ -27,87 +29,107 @@
- Userscripts App Icon -
diff --git a/src/app/app.css b/src/app/app.css index 2eaa3de0..a5d041a3 100644 --- a/src/app/app.css +++ b/src/app/app.css @@ -15,6 +15,36 @@ body { -webkit-font-smoothing: antialiased; } +/* ios */ +@supports (-webkit-touch-callout: none) { + html { + height: auto; + overflow: visible; + overscroll-behavior: none; + } + + /** + * Dynamic Type + * https://support.apple.com/102453 + * https://webkit.org/blog/3709/using-the-system-font-in-web-content/ + * https://developer.apple.com/library/archive/releasenotes/General/WhatsNewInSafari/Articles/Safari_7_0.html#//apple_ref/doc/uid/TP40014305-CH5-SW10 + * https://github.com/w3c/csswg-drafts/issues/3708 + */ + @supports (font: -apple-system-body) { + html { + /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ + font: -apple-system-body; /* default 17px */ + } + } + + /* Avoid page zoom */ + input, + textarea, + select { + font-size: max(1rem, 16px); + } +} + @media screen and (height <= 400px) { html { font-size: 80%; diff --git a/xcode/App-Shared/ViewController.swift b/xcode/App-Shared/ViewController.swift index 15430135..ff51fb9d 100644 --- a/xcode/App-Shared/ViewController.swift +++ b/xcode/App-Shared/ViewController.swift @@ -27,7 +27,7 @@ class ViewController: UIViewController, WKNavigationDelegate, WKScriptMessageHan logger?.debug("\(#function, privacy: .public) - DEBUG mode: isInspectable = true") #endif view = webView - self.webView.scrollView.isScrollEnabled = false +// self.webView.scrollView.isScrollEnabled = false self.webView.isOpaque = false let backgroundColor = UIColor.init(red: (47/255.0), green: (51/255.0), blue: (55/255.0), alpha: 1.0) view.setValue(backgroundColor, forKey: "backgroundColor")