mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 15:05:19 +00:00
Merge pull request #1672 from bemusementpark/ItemButton
Fix ItemButton padding for downstate
This commit is contained in:
commit
89a854e8d7
@ -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