From 730d9e65cad90f64a083ace7325ee982536db8a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BBerko?= Date: Wed, 1 Nov 2023 21:24:34 +0800 Subject: [PATCH] fix: removed fixed height to adapt to grid view [WPB-5101] (#2381) Co-authored-by: Oussama Hassine --- .../main/kotlin/com/wire/android/ui/common/AttachmentButton.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/common/AttachmentButton.kt b/app/src/main/kotlin/com/wire/android/ui/common/AttachmentButton.kt index e296dd0b1dc..64ee3f0a08d 100644 --- a/app/src/main/kotlin/com/wire/android/ui/common/AttachmentButton.kt +++ b/app/src/main/kotlin/com/wire/android/ui/common/AttachmentButton.kt @@ -27,7 +27,6 @@ import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer -import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.CircleShape @@ -60,7 +59,6 @@ fun AttachmentButton( ) { Column( modifier = modifier - .height(dimensions().spacing100x) .padding(dimensions().spacing4x) .clip(RoundedCornerShape(size = MaterialTheme.wireDimensions.buttonSmallCornerSize)) .clickable { onClick() } @@ -96,6 +94,7 @@ fun AttachmentButton( } } +// This composable has not fixed height to adapt to GridView in [AttachmentOptionsComponent] @Preview(showBackground = true) @Composable fun PreviewAttachmentButton() {