diff --git a/Evergreen/MainWindow/Timeline/Cell/TimelineCellAppearance.swift b/Evergreen/MainWindow/Timeline/Cell/TimelineCellAppearance.swift index 588b0ad33..40377440e 100644 --- a/Evergreen/MainWindow/Timeline/Cell/TimelineCellAppearance.swift +++ b/Evergreen/MainWindow/Timeline/Cell/TimelineCellAppearance.swift @@ -73,7 +73,7 @@ struct TimelineCellAppearance { self.avatarMarginRight = theme.float(forKey: "MainWindow.Timeline.cell.avatarMarginRight") self.avatarAdjustmentTop = theme.float(forKey: "MainWindow.Timeline.cell.avatarAdjustmentTop") - self.boxLeftMargin = self.cellPadding.left + self.unreadCircleDimension + self.unreadCircleMarginRight + self.avatarSize.width + self.avatarMarginRight + self.boxLeftMargin = self.cellPadding.left + self.unreadCircleDimension + self.unreadCircleMarginRight //+ self.avatarSize.width + self.avatarMarginRight } } diff --git a/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift b/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift index 4a1e28c67..dd37e3ae1 100644 --- a/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift +++ b/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift @@ -18,8 +18,9 @@ class TimelineTableCellView: NSTableCellView { let avatarImageView: NSImageView = { let imageView = NSImageView(frame: NSRect.zero) - imageView.imageScaling = .scaleProportionallyUpOrDown + imageView.imageScaling = .scaleProportionallyDown imageView.animates = false + imageView.imageAlignment = .alignTop return imageView }() @@ -176,15 +177,15 @@ class TimelineTableCellView: NSTableCellView { private func updateAvatar() { - if let image = cellData.avatar { - if avatarImageView.image !== image { - avatarImageView.image = image - } - avatarImageView.isHidden = false - } - else { - avatarImageView.isHidden = true - } +// if let image = cellData.avatar { +// if avatarImageView.image !== image { +// avatarImageView.image = image +// } +// avatarImageView.isHidden = false +// } +// else { +// avatarImageView.isHidden = true +// } } private func updateSubviews() {