Skip to content

Commit

Permalink
Center crop
Browse files Browse the repository at this point in the history
  • Loading branch information
ycheng-kickstarter committed Feb 13, 2025
1 parent 990aab3 commit 4ac556b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fun KSRewardCard(
.height(dimensions.cardImageHeight)
.fillMaxWidth(),
placeholder = ColorPainter(color = colors.backgroundDisabled),
contentScale = ContentScale.FillWidth
contentScale = ContentScale.Crop
)
}
if (yourSelectionIsVisible) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/item_add_on.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
android:layout_height="0dp"
android:contentDescription="@null"
android:visibility="gone"
android:scaleType="centerCrop"
app:layout_constraintDimensionRatio="@string/reward_card_image_aspect_ratio"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand Down

0 comments on commit 4ac556b

Please sign in to comment.