Set table view to style plain to avoid Big Sur's big margins. Fixes #2584

This commit is contained in:
Maurice Parker 2020-11-18 20:49:32 -06:00
parent f7574dc633
commit eb5e85cbcf
1 changed files with 4 additions and 0 deletions

View File

@ -208,6 +208,10 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
tableView.setDraggingSourceOperationMask(.copy, forLocal: false)
tableView.keyboardDelegate = keyboardDelegate
if #available(macOS 11.0, *) {
tableView.style = .plain
}
if !didRegisterForNotifications {
NotificationCenter.default.addObserver(self, selector: #selector(statusesDidChange(_:)), name: .StatusesDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(webFeedIconDidBecomeAvailable(_:)), name: .WebFeedIconDidBecomeAvailable, object: nil)