Added fixed size to image diff

This commit is contained in:
Abdelilah El Aissaoui 2022-10-17 19:07:02 +02:00
parent 40e9b042e5
commit fceb559661

View file

@ -280,7 +280,17 @@ private fun StaticImage(tempImagePath: String) {
Image(
bitmap = image ?: ImageBitmap.Blank,
contentDescription = null,
modifier = Modifier.fillMaxSize()
modifier = Modifier
.run {
val safeImage = image
if(safeImage == null)
fillMaxSize()
else {
width(safeImage.width.dp)
.height(safeImage.height.dp)
}
}
.handMouseClickable {
openFileWithExternalApp(tempImagePath)
}