Skip to content

Commit

Permalink
- Fixed padding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
askNilesh committed Sep 11, 2023
1 parent 58cf23b commit 86b91ed
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun TUISelectionCard(

Column(
modifier = Modifier
.padding(start = 16.dp)
.padding(start = if(leadingIcon != null) 16.dp else 0.dp)
.weight(1f)
) {

Expand Down Expand Up @@ -183,6 +183,20 @@ fun TUISelectionCardPreview() {
verticalArrangement = Arrangement.Center
) {

TUISelectionCard(
leadingIcon = TarkaIcons.Regular.Person24,
label = "Label",
primaryDescription = "Description",
isSelected = true
) {}
VerticalSpacer(space = 14)
TUISelectionCard(
label = "Label",
primaryDescription = "Description",
isSelected = true
) {}
VerticalSpacer(space = 14)

TUISelectionCard(
leadingIcon = TarkaIcons.Regular.Person24,
label = "Label",
Expand Down

0 comments on commit 86b91ed

Please sign in to comment.