diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt index b933e8cae..cc40292ff 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/components/AppNavigationSuiteScaffold.kt @@ -125,13 +125,16 @@ private fun AppNavigationRail( containerColor = SwissTransferTheme.colors.navigationItemBackground, windowInsets = WindowInsets(left = 0, top = 0, right = 0, bottom = 0), ) { - navigationItems.forEach { navigationItem -> + navigationItems.forEachIndexed { index, navigationItem -> NavigationRailItem( icon = { NavigationIcon(false, navigationItem) }, - label = {}, // Don't remove this seemingly useless label, it changes the icons background. + label = { NavigationLabel(navigationItem) }, selected = currentDestination == navigationItem.destination, onClick = { onClick(navigationItem.destination) }, ) + if (index != navigationItems.lastIndex) { + Spacer(modifier = Modifier.height(Margin.Micro)) + } } } }