Skip to content

Commit

Permalink
fix height of StepItem.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
rozPierog committed Feb 11, 2022
1 parent 0d2134b commit 39fa452
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions app/src/main/java/com/omelan/cofi/components/StepItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fun StepListItem(
onClick: ((Step) -> Unit)? = null
) {
val constraintModifier = modifier
.heightIn(min = 42.dp)
.animateContentSize()
.fillMaxWidth()
.padding(vertical = Spacing.small)
Expand All @@ -43,11 +44,7 @@ fun StepListItem(
role = Role.Button,
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(bounded = true),
).apply {
if (onClick != null) {
heightIn(min = 42.dp)
}
}
)

ConstraintLayout(
modifier = constraintModifier
Expand Down Expand Up @@ -120,8 +117,8 @@ fun StepListItemPreview() {
step = Step(
id = 0,
name = "Somebody once told me the world is gonna roll me I ain't the sharpest " +
"tool in the shed She was looking kind of dumb with her finger and her thumb " +
"In the shape of an \"L\" on her forehead",
"tool in the shed She was looking kind of dumb with her finger and her thumb " +
"In the shape of an \"L\" on her forehead",
time = 35.toMillis(),
type = StepType.WATER,
value = 60,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified fastlane/metadata/android/en-US/images/phoneScreenshots/6_en-US.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39fa452

Please sign in to comment.