Fixes image cropping opening the image dialog.
This commit is contained in:
@@ -219,7 +219,7 @@ private fun LocalImageView(
|
|||||||
it.aspectRatio(ratio, maxHeight.isFinite)
|
it.aspectRatio(ratio, maxHeight.isFinite)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val contentScale = if (maxHeight.isFinite) ContentScale.Fit else ContentScale.FillWidth
|
val contentScale = if (maxHeight.isFinite) ContentScale.Inside else ContentScale.FillWidth
|
||||||
|
|
||||||
if (content.localFile != null && content.localFile.exists()) {
|
if (content.localFile != null && content.localFile.exists()) {
|
||||||
AsyncImage(
|
AsyncImage(
|
||||||
@@ -285,7 +285,7 @@ private fun UrlImageView(
|
|||||||
this.aspectRatio(ratio, maxHeight.isFinite)
|
this.aspectRatio(ratio, maxHeight.isFinite)
|
||||||
} ?: this
|
} ?: this
|
||||||
}
|
}
|
||||||
val contentScale = if (maxHeight.isFinite) ContentScale.Fit else ContentScale.FillWidth
|
val contentScale = if (maxHeight.isFinite) ContentScale.Inside else ContentScale.FillWidth
|
||||||
|
|
||||||
AsyncImage(
|
AsyncImage(
|
||||||
model = content.url,
|
model = content.url,
|
||||||
|
|||||||
Reference in New Issue
Block a user