mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add a small amount of corner clipping to favicons
This commit is contained in:
@@ -93,7 +93,10 @@ class MasterFeedTableViewCell : NNWTableViewCell {
|
||||
}()
|
||||
|
||||
private let faviconImageView: UIImageView = {
|
||||
return NonIntrinsicImageView(image: AppAssets.faviconTemplateImage)
|
||||
let imageView = NonIntrinsicImageView(image: AppAssets.faviconTemplateImage)
|
||||
imageView.layer.cornerRadius = MasterFeedTableViewCellLayout.faviconCornerRadius
|
||||
imageView.clipsToBounds = true
|
||||
return imageView
|
||||
}()
|
||||
|
||||
private var unreadCountView = MasterFeedUnreadCountView(frame: CGRect.zero)
|
||||
|
||||
@@ -21,6 +21,8 @@ struct MasterFeedTableViewCellLayout {
|
||||
|
||||
private static let minRowHeight = CGFloat(integerLiteral: 44)
|
||||
|
||||
static let faviconCornerRadius = CGFloat(integerLiteral: 2)
|
||||
|
||||
let faviconRect: CGRect
|
||||
let titleRect: CGRect
|
||||
let unreadCountRect: CGRect
|
||||
|
||||
Reference in New Issue
Block a user