mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Don't scale up icons anymore. It was causing a weird effect where in some visible views the source icon was larger than in other.
This commit is contained in:
@@ -39,11 +39,7 @@ struct IconImageView: View {
|
||||
let newSize: CGSize
|
||||
|
||||
if imageSize.height == imageSize.width {
|
||||
if imageSize.height >= viewSize.height * 0.75 {
|
||||
newSize = CGSize(width: viewSize.width, height: viewSize.height)
|
||||
} else {
|
||||
newSize = CGSize(width: imageSize.width, height: imageSize.height)
|
||||
}
|
||||
return imageSize
|
||||
} else if imageSize.height > imageSize.width {
|
||||
let factor = viewSize.height / imageSize.height
|
||||
let width = imageSize.width * factor
|
||||
|
||||
Reference in New Issue
Block a user