From d5733da6a3b9f16faa73bce1debbf8d2a2e3367b Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Wed, 12 Oct 2022 15:38:15 +0300 Subject: [PATCH] Limited image height --- .../main/java/chat/simplex/app/views/chat/item/CIImageView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIImageView.kt b/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIImageView.kt index f30719be87..b720ca5c21 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIImageView.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIImageView.kt @@ -102,6 +102,7 @@ fun CIImageView( // if text is short and take all available width if text is long modifier = Modifier .width(1000.dp) + .heightIn(max = 300.dp) .combinedClickable( onLongClick = { showMenu.value = true }, onClick = onClick @@ -119,6 +120,7 @@ fun CIImageView( // if text is short and take all available width if text is long modifier = Modifier .width(1000.dp) + .heightIn(max = 300.dp) .combinedClickable( onLongClick = { showMenu.value = true }, onClick = onClick