Skip to content

Commit

Permalink
Merge pull request #161 from niscy-eudiw/bugfix/small_fix
Browse files Browse the repository at this point in the history
Refactor: Updated spacing in WrapModalBottomSheet
  • Loading branch information
stzouvaras authored Jul 29, 2024
2 parents 36714e5 + b9d8a03 commit 685a1bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ class DashboardViewModel(

is DashboardInteractorRetryIssuingDeferredDocumentsPartialState.Result -> {
val successDocs = response.successfullyIssuedDeferredDocuments
if (successDocs.isNotEmpty()) {
if (successDocs.isNotEmpty()
&& !viewState.value.isBottomSheetOpen
&& viewState.value.sheetContent is DashboardBottomSheetContent.DeferredDocumentsReady
) {
showBottomSheet(
sheetContent = DashboardBottomSheetContent.DeferredDocumentsReady(
successfullyIssuedDeferredDocuments = successDocs,
Expand Down
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 685a1bd

Please sign in to comment.