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(
|
TextButton(
|
||||||
modifier = modifier.fillMaxWidth()
|
modifier = modifier.fillMaxWidth()
|
||||||
.height(IntrinsicSize.Min)
|
.height(IntrinsicSize.Min)
|
||||||
.heightIn(min = minHeight)
|
.heightIn(min = minHeight),
|
||||||
.padding(horizontal = LocalDimensions.current.xsSpacing),
|
|
||||||
colors = colors,
|
colors = colors,
|
||||||
onClick = onClick,
|
onClick = onClick,
|
||||||
|
contentPadding = PaddingValues(),
|
||||||
shape = RectangleShape,
|
shape = RectangleShape,
|
||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier.fillMaxHeight()
|
modifier = Modifier.fillMaxHeight()
|
||||||
.aspectRatio(1f)
|
|
||||||
.align(Alignment.CenterVertically)
|
.align(Alignment.CenterVertically)
|
||||||
) {
|
.padding(horizontal = LocalDimensions.current.xxsSpacing)
|
||||||
icon()
|
.aspectRatio(1f),
|
||||||
}
|
content = icon
|
||||||
|
)
|
||||||
Spacer(modifier = Modifier.width(LocalDimensions.current.smallSpacing))
|
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
text,
|
text,
|
||||||
|
Loading…
Reference in New Issue
Block a user