mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-12 01:33:51 +01:00
Make external links span the full width of the article area
This commit is contained in:
parent
185b4cd28e
commit
26d27913ae
@ -154,10 +154,7 @@ private extension ArticleRenderer {
|
|||||||
d["title"] = title
|
d["title"] = title
|
||||||
|
|
||||||
if let externalLink = article.externalURL, externalLink != article.preferredLink {
|
if let externalLink = article.externalURL, externalLink != article.preferredLink {
|
||||||
var displayLink = externalLink.strippingHTTPOrHTTPSScheme
|
let displayLink = externalLink.strippingHTTPOrHTTPSScheme
|
||||||
if displayLink.count > 27 {
|
|
||||||
displayLink = displayLink.prefix(27).appending("...")
|
|
||||||
}
|
|
||||||
let regarding = NSLocalizedString("Link", comment: "Link")
|
let regarding = NSLocalizedString("Link", comment: "Link")
|
||||||
let externalLinkString = "\(regarding): <a href=\"\(externalLink)\">\(displayLink)</a>"
|
let externalLinkString = "\(regarding): <a href=\"\(externalLink)\">\(displayLink)</a>"
|
||||||
d["external_link"] = externalLinkString
|
d["external_link"] = externalLinkString
|
||||||
|
@ -120,6 +120,10 @@ body > .systemMessage {
|
|||||||
.externalLink {
|
.externalLink {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.articleBody {
|
.articleBody {
|
||||||
|
Loading…
Reference in New Issue
Block a user