From 73b0088aea30bb881377a423f51035708a624bbf Mon Sep 17 00:00:00 2001 From: bemusementpark Date: Wed, 18 Sep 2024 16:34:44 +0930 Subject: [PATCH] Fix ItemButton padding for downstate --- .../org/thoughtcrime/securesms/ui/Components.kt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/ui/Components.kt b/app/src/main/java/org/thoughtcrime/securesms/ui/Components.kt index 355d74947d..6f6992474f 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/ui/Components.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/ui/Components.kt @@ -277,21 +277,19 @@ fun ItemButton( TextButton( modifier = modifier.fillMaxWidth() .height(IntrinsicSize.Min) - .heightIn(min = minHeight) - .padding(horizontal = LocalDimensions.current.xsSpacing), + .heightIn(min = minHeight), colors = colors, onClick = onClick, + contentPadding = PaddingValues(), shape = RectangleShape, ) { Box( modifier = Modifier.fillMaxHeight() - .aspectRatio(1f) .align(Alignment.CenterVertically) - ) { - icon() - } - - Spacer(modifier = Modifier.width(LocalDimensions.current.smallSpacing)) + .padding(horizontal = LocalDimensions.current.xxsSpacing) + .aspectRatio(1f), + content = icon + ) Text( text,