From 387501ffb6f32eab048fc4597c9f184ade3b3824 Mon Sep 17 00:00:00 2001 From: Giannis Stamatopoulos Date: Tue, 30 Jul 2024 00:33:19 +0300 Subject: [PATCH] Refactor: Updated spacing in WrapModalBottomSheet Replaced SIZE_SMALL and SIZE_MEDIUM with SPACING_SMALL and SPACING_MEDIUM for consistent spacing in the WrapModalBottomSheet component. --- .../ec/uilogic/component/wrap/WrapModalBottomSheet.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui-logic/src/main/java/eu/europa/ec/uilogic/component/wrap/WrapModalBottomSheet.kt b/ui-logic/src/main/java/eu/europa/ec/uilogic/component/wrap/WrapModalBottomSheet.kt index fadc553d..ffc450e9 100644 --- a/ui-logic/src/main/java/eu/europa/ec/uilogic/component/wrap/WrapModalBottomSheet.kt +++ b/ui-logic/src/main/java/eu/europa/ec/uilogic/component/wrap/WrapModalBottomSheet.kt @@ -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 @@ -209,7 +210,7 @@ fun OptionsList( optionItems: List, ) { LazyColumn( - verticalArrangement = Arrangement.spacedBy(SIZE_SMALL.dp) + verticalArrangement = Arrangement.spacedBy(SPACING_SMALL.dp) ) { items(optionItems) { item -> OptionListItem( @@ -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