From 55885f5d8e12d0348cbe548f957ee9dfa7b9e67b Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Thu, 9 Nov 2023 12:57:45 +0530 Subject: [PATCH] Remove unnecessary modifier padding in `SupportingText` (#139) --- .../mobile/ui/designsystem/component/SupportingText.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/SupportingText.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/SupportingText.kt index 144912620..ed407e27d 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/SupportingText.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/SupportingText.kt @@ -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, @@ -157,7 +153,7 @@ fun SupportingText( } } }, - modifier = modifier.animateContentSize().padding(paddingValues), + modifier = modifier.padding(paddingValues).animateContentSize(), ) } }