Skip to content

Commit

Permalink
fix: [ANDROAPP-5596] form fields spacing (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos authored Nov 3, 2023
1 parent 29f4ff4 commit 4de228c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 4de228c

Please sign in to comment.