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(), ) } }