Make external links span the full width of the article area
This commit is contained in:
parent
5754512c59
commit
63e4d2c54e
|
@ -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
|
||||
|
|
|
@ -118,6 +118,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