From 4de228c00bd58473942716338e68ac4a6ab0ad9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manu=20Mu=C3=B1oz?= Date: Fri, 3 Nov 2023 09:52:16 +0100 Subject: [PATCH] fix: [ANDROAPP-5596] form fields spacing (#135) --- .../hisp/dhis/mobile/ui/designsystem/component/Sections.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/Sections.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/Sections.kt index bf034f462..efb8c03ea 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/Sections.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/Sections.kt @@ -51,7 +51,6 @@ import org.hisp.dhis.mobile.ui.designsystem.resource.provideStringResource import org.hisp.dhis.mobile.ui.designsystem.theme.Color.Ash600 import org.hisp.dhis.mobile.ui.designsystem.theme.Shape import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing -import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing.Spacing0 import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing.Spacing16 import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing.Spacing24 import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor @@ -86,7 +85,7 @@ fun Section( content: @Composable ColumnScope.() -> Unit, ) { when (state) { - SectionState.NO_HEADER -> SectionContent(spacedBy(Spacing0)) { content() } + SectionState.NO_HEADER -> SectionContent(spacedBy(Spacing24)) { content() } else -> SectionBlock( modifier = modifier, isLastSection = isLastSection, @@ -159,7 +158,7 @@ internal fun SectionBlock( enter = expandVertically(expandFrom = Alignment.CenterVertically), exit = shrinkVertically(shrinkTowards = Alignment.CenterVertically), ) { - SectionContent(verticalArrangement = spacedBy(Spacing16)) { content() } + SectionContent(verticalArrangement = spacedBy(Spacing24)) { content() } } if (!isLastSection && sectionState == SectionState.OPEN) { NextSectionButton(