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 185b4cd28e
commit 26d27913ae
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

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