From a6c0f1a4155de829868c23a537f057c60ae78995 Mon Sep 17 00:00:00 2001 From: Wing <44992537+wingio@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:32:55 -0400 Subject: [PATCH] Fix images in trending list being stretched --- .../gloom/ui/screen/explore/component/TrendingRepoItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/commonMain/kotlin/com/materiiapps/gloom/ui/screen/explore/component/TrendingRepoItem.kt b/ui/src/commonMain/kotlin/com/materiiapps/gloom/ui/screen/explore/component/TrendingRepoItem.kt index 4e6161f..6e2c524 100644 --- a/ui/src/commonMain/kotlin/com/materiiapps/gloom/ui/screen/explore/component/TrendingRepoItem.kt +++ b/ui/src/commonMain/kotlin/com/materiiapps/gloom/ui/screen/explore/component/TrendingRepoItem.kt @@ -63,7 +63,7 @@ fun TrendingRepoItem( Image( painter = rememberImagePainter(trendingRepository.openGraphImageUrl), contentDescription = null, - contentScale = ContentScale.FillBounds, + contentScale = ContentScale.Crop, modifier = Modifier .aspectRatio(2f) .fillMaxWidth()