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
|
||||
|
||||
if let externalLink = article.externalURL, externalLink != article.preferredLink {
|
||||
var displayLink = externalLink.strippingHTTPOrHTTPSScheme
|
||||
if displayLink.count > 27 {
|
||||
displayLink = displayLink.prefix(27).appending("...")
|
||||
}
|
||||
let displayLink = externalLink.strippingHTTPOrHTTPSScheme
|
||||
let regarding = NSLocalizedString("Link", comment: "Link")
|
||||
let externalLinkString = "\(regarding): <a href=\"\(externalLink)\">\(displayLink)</a>"
|
||||
d["external_link"] = externalLinkString
|
||||
|
|
|
@ -120,6 +120,10 @@ body > .systemMessage {
|
|||
.externalLink {
|
||||
margin-bottom: 5px;
|
||||
font-style: italic;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.articleBody {
|
||||
|
|
Loading…
Reference in New Issue