mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 15:05:19 +00:00
Fix ItemButton padding for downstate
This commit is contained in:
parent
fdf8f4170b
commit
73b0088aea
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user