Make external links span the full width of the article area

This commit is contained in:
Maurice Parker 2021-07-21 17:01:57 -05:00
parent 5754512c59
commit 63e4d2c54e
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -118,6 +118,10 @@ body > .systemMessage {
.externalLink {
margin-bottom: 5px;
font-style: italic;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.articleBody {