Skip to content

Commit 534dac5

Browse files
authored
Add corner radius to Aspect Ratio grid (#24962)
1 parent 47a7279 commit 534dac5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WordPress/Classes/ViewRelated/Media/SiteMedia/Views/SiteMediaCollectionCell.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ final class SiteMediaCollectionCell: UICollectionViewCell, Reusable {
119119
aspectRatioConstraint.isActive = true
120120
self.aspectRatioConstraint = aspectRatioConstraint
121121
}
122+
123+
imageContainerView.layer.cornerRadius = isAspectRatioModeEnabled ? 4 : 0
124+
imageContainerView.layer.masksToBounds = true
122125
}
123126

124127
// MARK: - Refresh

0 commit comments

Comments
 (0)