Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reduce recommended design thumbnail sizes due to backend limitations.
  • Loading branch information
twstokes committed Jun 14, 2022
commit 1eb6b228085090a8dcad761298623bbae63e71c8
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ enum SiteDesignCategoryThumbnailSize {
case recommended

var value: CGSize {
switch self {
case .category where UIDevice.isPad():
if UIDevice.isPad() {
return .init(width: 250, height: 325)
case .category:
return .init(width: 200, height: 260)
case .recommended where UIDevice.isPad():
return .init(width: 327, height: 450)
case .recommended:
return .init(width: 350, height: 450)
}

return .init(width: 200, height: 260)
}
}