Skip to content

Commit

Permalink
fix: removed fixed height to adapt to grid view [WPB-5101] (#2381)
Browse files Browse the repository at this point in the history
Co-authored-by: Oussama Hassine <oussama.has100@gmail.com>
  • Loading branch information
Garzas and ohassine committed Nov 1, 2023
1 parent a3f34b0 commit 730d9e6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -60,7 +59,6 @@ fun AttachmentButton(
) {
Column(
modifier = modifier
.height(dimensions().spacing100x)
.padding(dimensions().spacing4x)
.clip(RoundedCornerShape(size = MaterialTheme.wireDimensions.buttonSmallCornerSize))
.clickable { onClick() }
Expand Down Expand Up @@ -96,6 +94,7 @@ fun AttachmentButton(
}
}

// This composable has not fixed height to adapt to GridView in [AttachmentOptionsComponent]
@Preview(showBackground = true)
@Composable
fun PreviewAttachmentButton() {
Expand Down

0 comments on commit 730d9e6

Please sign in to comment.