Skip to content

Commit

Permalink
fix list card key value spacing (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: Siddharth Agarwal <[email protected]>
  • Loading branch information
siddh1004 and Siddharth Agarwal authored Nov 16, 2023
1 parent 0ef5291 commit aef4fc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,19 +415,17 @@ private fun KeyValue(
)
}),
) {
Spacer(Modifier.size(Spacing4))
if (additionalInfoItem.icon != null) {
Box(
Modifier.background(color = Color.Transparent).size(InternalSizeValues.Size20),
) {
additionalInfoItem.icon.invoke()
}
Spacer(Modifier.size(Spacing4))
}

Spacer(Modifier.size(Spacing4))
valueColor = if (additionalInfoItem.action != null) SurfaceColor.Primary else valueColor
ListCardValue(text = additionalInfoItem.value, color = valueColor)
Spacer(Modifier.size(Spacing4))
}
} else {
keyColor = additionalInfoItem.color ?: AdditionalInfoItemColor.DEFAULT_KEY.color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ internal fun ListCardKey(
lineIndex = 0,
visibleEnd = true,
)
modifiedText = modifiedText.substring(0, lineIndex) + "...:"
modifiedText = modifiedText.substring(0, lineIndex).trimEnd() + "...:"
}
},
)
Expand Down

0 comments on commit aef4fc4

Please sign in to comment.