Skip to content

Commit

Permalink
Temp fix for incorrect coil image sizing. (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Sep 2, 2024
1 parent 4720509 commit 7623963
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ fun PictrsUrlImage(

AsyncImage(
model = imageRequest,
placeholder = rememberAsyncImagePainter(R.drawable.ic_launcher_foreground),
// TODO There's a bug in coil when using a placeholder,
// and ContentScale.FillWidth
// See https://github.com/coil-kt/coil/issues/1505
// placeholder = rememberAsyncImagePainter(R.drawable.ic_launcher_foreground),
contentDescription = contentDescription,
contentScale = ContentScale.FillWidth,
modifier =
Expand Down

0 comments on commit 7623963

Please sign in to comment.