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