Skip to content

Commit

Permalink
Revert size change
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Nov 14, 2024
1 parent 6f93f74 commit 9acbf09
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ struct SiteIconViewModel {
init(readerSiteTopic: ReaderSiteTopic, size: Size = .regular) {
self.size = size
self.firstLetter = readerSiteTopic.title.first
let scale = UITraitCollection.current.displayScale
self.imageURL = SiteIconViewModel.makeReaderSiteIconURL(
iconURL: readerSiteTopic.siteBlavatar,
siteID: readerSiteTopic.siteID.intValue,
size: size.size.scaled(by: scale)
size: size.size
)
}
}
Expand Down Expand Up @@ -118,7 +117,7 @@ extension SiteIconViewModel {

extension SiteIconViewModel {
/// - parameter isBlavatar: A hint to skip the "is icon blavatar" check.
/// - parameter size: Size in pixels.
/// - parameter size: Size in points.
static func makeReaderSiteIconURL(iconURL: String?, isBlavatar: Bool = false, siteID: Int?, size: CGSize) -> URL? {
guard let iconURL, !iconURL.isEmpty else {
if let siteID {
Expand Down

0 comments on commit 9acbf09

Please sign in to comment.