Added fixed size to image diff
This commit is contained in:
parent
40e9b042e5
commit
fceb559661
1 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue