Merge branch 'master' into swiftui

This commit is contained in:
Maurice Parker 2020-07-08 13:23:23 -05:00
commit 526fe71cf1
5 changed files with 14 additions and 12 deletions

View File

@ -1,6 +1,6 @@
# ![Icon](Technotes/Images/icon.png) NetNewsWire
![CI](https://github.com/Ranchero-Software/NetNewsWire/workflows/CI/badge.svg?branch=master)
[![CI](https://github.com/Ranchero-Software/NetNewsWire/workflows/CI/badge.svg?branch=master)](https://github.com/Ranchero-Software/NetNewsWire/actions?query=workflow%3ACI+branch%3Amaster)
Its a free and open source feed reader for macOS and iOS.

View File

@ -1,6 +1,9 @@
// Here we are making iframes responsive. Particularly useful for inline Youtube videos.
function wrapFrames() {
document.querySelectorAll("iframe").forEach(element => {
if (element.height > 0 || parseInt(element.style.height) > 0)
return;
var wrapper = document.createElement("div");
wrapper.classList.add("iframeWrap");
element.parentNode.insertBefore(wrapper, element);

View File

@ -171,23 +171,22 @@ code, pre {
padding: 0;
}
img, figure, iframe, div {
img, figure, video, div {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}
iframe {
max-width: 100%;
margin: 0 auto;
}
figure {
margin-bottom: 1em;
margin-top: 1em;
}
video {
width: 100% !important;
height: auto !important;
margin: 0 auto;
}
figcaption {
font-size: 14px;
line-height: 1.3em;

View File

@ -50,9 +50,9 @@ Neither ranchero.com nor inessential.com use any cookies or JavaScript, and they
### Related sites
The [NetNewsWire GitHub repository](https://github.com/brentsimmons/NetNewsWire) does use cookies and JavaScript, because thats how GitHub works. The repository, including the issue tracker and anything you post there, is public. See [GitHubs privacy policy](link_tbd) for more information.
The [NetNewsWire GitHub repository](https://github.com/brentsimmons/NetNewsWire) does use cookies and JavaScript, because thats how GitHub works. The repository, including the issue tracker and anything you post there, is public. See [GitHubs privacy policy](https://help.github.com/en/github/site-policy/github-privacy-statement) for more information.
The NetNewsWire Slack group also uses cookies and JavaScript, because thats how Slack works. The group is public: anyone may join. See [Slacks privacy policy](link_tbd) for more info.
The NetNewsWire Slack group also uses cookies and JavaScript, because thats how Slack works. The group is public: anyone may join. See [Slacks privacy policy](https://slack.com/privacy-policy) for more info.
Posting to the GitHub repository and joining the Slack group are optional, opt-in activities.

View File

@ -116,8 +116,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
webView.ready { preloadedWebView in
preloadedWebView.removeFromSuperview()
self.completion(preloadedWebView)
self.operationDelegate?.operationDidComplete(self)
}
self.operationDelegate?.operationDidComplete(self)
return
}
@ -127,8 +127,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
webView.preload()
webView.ready { preloadedWebView in
self.completion(preloadedWebView)
self.operationDelegate?.operationDidComplete(self)
}
self.operationDelegate?.operationDidComplete(self)
}
}