Skip to content

Commit

Permalink
Refactor: Updated spacing in WrapModalBottomSheet
Browse files Browse the repository at this point in the history
Replaced SIZE_SMALL and SIZE_MEDIUM with SPACING_SMALL and SPACING_MEDIUM for consistent spacing in the WrapModalBottomSheet component.
  • Loading branch information
gstamatop committed Jul 29, 2024
1 parent 36714e5 commit 387501f
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ import eu.europa.ec.uilogic.component.AppIcons
import eu.europa.ec.uilogic.component.IconData
import eu.europa.ec.uilogic.component.preview.PreviewTheme
import eu.europa.ec.uilogic.component.preview.ThemeModePreviews
import eu.europa.ec.uilogic.component.utils.SIZE_MEDIUM
import eu.europa.ec.uilogic.component.utils.SIZE_SMALL
import eu.europa.ec.uilogic.component.utils.SPACING_EXTRA_LARGE
import eu.europa.ec.uilogic.component.utils.SPACING_LARGE
import eu.europa.ec.uilogic.component.utils.SPACING_MEDIUM
import eu.europa.ec.uilogic.component.utils.SPACING_SMALL
import eu.europa.ec.uilogic.component.utils.VSpacer
import eu.europa.ec.uilogic.extension.throttledClickable

Expand Down Expand Up @@ -209,7 +210,7 @@ fun OptionsList(
optionItems: List<OptionListItemUi>,
) {
LazyColumn(
verticalArrangement = Arrangement.spacedBy(SIZE_SMALL.dp)
verticalArrangement = Arrangement.spacedBy(SPACING_SMALL.dp)
) {
items(optionItems) { item ->
OptionListItem(
Expand All @@ -236,8 +237,8 @@ fun OptionListItem(
onItemSelected.invoke()
}
.padding(
horizontal = SIZE_SMALL.dp,
vertical = SIZE_MEDIUM.dp
horizontal = SPACING_SMALL.dp,
vertical = SPACING_MEDIUM.dp
),
horizontalArrangement = Arrangement.Start,
verticalAlignment = Alignment.CenterVertically
Expand Down

0 comments on commit 387501f

Please sign in to comment.