Skip to content

Commit

Permalink
Remove unnecessary modifier padding in SupportingText (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth authored Nov 9, 2023
1 parent e0fdee6 commit 55885f5
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ fun SupportingText(
maxLines: Int = 1,
showMoreText: String = provideStringResource("show_more"),
showLessText: String = provideStringResource("show_less"),
modifier: Modifier = Modifier.padding(
start = Spacing.Spacing16,
top = Spacing.Spacing4,
end = Spacing.Spacing16,
),
modifier: Modifier = Modifier,
paddingValues: PaddingValues = PaddingValues(
start = Spacing.Spacing16,
top = Spacing.Spacing4,
Expand Down Expand Up @@ -157,7 +153,7 @@ fun SupportingText(
}
}
},
modifier = modifier.animateContentSize().padding(paddingValues),
modifier = modifier.padding(paddingValues).animateContentSize(),
)
}
}
Expand Down

0 comments on commit 55885f5

Please sign in to comment.