Skip to content

Commit 1dd2957

Browse files
authored
Merge pull request #18972 from wordpress-mobile/try/re-enable-large-recommended-theme-screenshots
[Site Design Revamp] Re-enable large recommended theme screenshots
2 parents 93d5bf4 + e262c27 commit 1dd2957

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
20.5
22
-----
3-
3+
* [*] Use larger thumbnail previews for recommended themes during site creation [https://github.com/wordpress-mobile/WordPress-iOS/pull/18972]
44

55
20.4
66
-----

WordPress/Classes/ViewRelated/Site Creation/Design Selection/SiteDesignCategoryThumbnailSize.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ enum SiteDesignCategoryThumbnailSize {
55
case recommended
66

77
var value: CGSize {
8-
if UIDevice.isPad() {
8+
switch self {
9+
case .category where UIDevice.isPad():
910
return .init(width: 250, height: 325)
11+
case .category:
12+
return .init(width: 200, height: 260)
13+
case .recommended where UIDevice.isPad():
14+
return .init(width: 327, height: 450)
15+
case .recommended:
16+
return .init(width: 350, height: 450)
1017
}
11-
12-
return .init(width: 200, height: 260)
1318
}
1419
}

WordPress/Classes/ViewRelated/Site Creation/Design Selection/SiteDesignSectionLoader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct SiteDesignSectionLoader {
3939
)
4040

4141
let request = SiteDesignRequest(
42-
withThumbnailSize: SiteDesignCategoryThumbnailSize.category.value,
42+
withThumbnailSize: SiteDesignCategoryThumbnailSize.recommended.value,
4343
withGroups: templateGroups
4444
)
4545

0 commit comments

Comments
 (0)