Fix ItemButton padding for downstate

This commit is contained in:
bemusementpark 2024-09-18 16:34:44 +09:30
parent fdf8f4170b
commit 73b0088aea

View File

@ -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,