This commit is contained in:
Maurice Parker 2019-05-14 04:03:10 -05:00
commit 3dc2bc2c49
5 changed files with 14 additions and 5 deletions

View File

@ -19,7 +19,7 @@ class TimelineTableCellView: NSTableCellView {
private let feedNameView = TimelineTableCellView.singleLineTextField()
private lazy var avatarImageView: NSImageView = {
let imageView = TimelineTableCellView.imageView(with: AppImages.genericFeedImage, scaling: .scaleProportionallyDown)
let imageView = TimelineTableCellView.imageView(with: AppImages.genericFeedImage, scaling: .scaleNone)
imageView.wantsLayer = true
return imageView
}()

View File

@ -10,6 +10,10 @@ import AppKit
class TimelineTableRowView : NSTableRowView {
override var isOpaque: Bool {
return true
}
init() {
super.init(frame: NSRect.zero)
}

View File

@ -24,6 +24,10 @@ class TimelineTableView: NSTableView {
// MARK: - NSView
override var isOpaque: Bool {
return true
}
override func viewWillStartLiveResize() {
if let scrollView = self.enclosingScrollView {
scrollView.hasVerticalScroller = false

View File

@ -85,17 +85,18 @@ struct TimelineStringFormatter {
return ""
}
if let cachedBody = summaryCache[body] {
let key = article.articleID + article.accountID
if let cachedBody = summaryCache[key] {
return cachedBody
}
var s = body.rsparser_stringByDecodingHTMLEntities()
s = s.rs_string(byStrippingHTML: 300)
s = s.rs_string(byStrippingHTML: 150)
s = s.rs_stringByTrimmingWhitespace()
s = s.rs_stringWithCollapsedWhitespace()
if s == "Comments" { // Hacker News.
s = ""
}
summaryCache[body] = s
summaryCache[key] = s
return s
}

@ -1 +1 @@
Subproject commit 6ab0683e6d2fb2dc09b5625a7da62459dbc0d9af
Subproject commit 9c268f00e93f758a79dae04dd8f18d27449221b0