mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Merge branch 'master' of https://github.com/brentsimmons/NetNewsWire
This commit is contained in:
@@ -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
|
||||
}()
|
||||
|
||||
@@ -10,6 +10,10 @@ import AppKit
|
||||
|
||||
class TimelineTableRowView : NSTableRowView {
|
||||
|
||||
override var isOpaque: Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
init() {
|
||||
super.init(frame: NSRect.zero)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Submodule submodules/RSCore updated: 6ab0683e6d...9c268f00e9
Reference in New Issue
Block a user