Skip to content

Commit

Permalink
Fix: Restyled HomeSessionContent card to prevent stretching of images.
Browse files Browse the repository at this point in the history
* Moved to ContentScale.Crop and adjusted width to 14o.dp
  • Loading branch information
donald-okara committed Nov 12, 2024
1 parent c4deda7 commit 06252b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fun HomeSessionContent(
) {
Card(
modifier = modifier
.width(300.dp)
.width(140.dp)
.height(intrinsicSize = IntrinsicSize.Max),
colors = CardDefaults.cardColors(containerColor = MaterialTheme.chaiColorsPalette.surfaces),
onClick = { onSessionClick(session.id) }
Expand All @@ -96,7 +96,7 @@ fun HomeSessionContent(
modifier = Modifier
.height(140.dp)
.fillMaxWidth(),
contentScale = ContentScale.FillBounds
contentScale = ContentScale.Crop
)
Spacer(Modifier.height(8.dp))
Column(
Expand Down

0 comments on commit 06252b3

Please sign in to comment.