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,