Skip to content

Commit

Permalink
fix: Better display for bottombar in all languages
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Dec 5, 2024
1 parent 7d12c8f commit 58e005b
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ private fun BottomBar(
) {
HorizontalDivider()
Row(
modifier = Modifier.padding(horizontal = Margin.Medium),
modifier = Modifier.padding(horizontal = Margin.Micro),
horizontalArrangement = Arrangement.SpaceBetween,
) {
if (isMultiselectOn()) {
BottomBarButton(BottomBarItem.MULTISELECT_DOWNLOAD, onClick)
Expand All @@ -253,18 +254,11 @@ private fun BottomBar(

when (direction) {
TransferDirection.SENT -> {
Spacer(Modifier.width(Margin.Medium))
BottomBarButton(BottomBarItem.QR_CODE, onClick)

if (shouldShowPassword()) {
Spacer(Modifier.width(Margin.Medium))
BottomBarButton(BottomBarItem.PASSWORD, onClick)
}
}
TransferDirection.RECEIVED -> {
Spacer(Modifier.width(Margin.Medium))
BottomBarButton(BottomBarItem.DOWNLOAD, onClick)
if (shouldShowPassword()) BottomBarButton(BottomBarItem.PASSWORD, onClick)
}
TransferDirection.RECEIVED -> BottomBarButton(BottomBarItem.DOWNLOAD, onClick)
}
}
}
Expand Down

0 comments on commit 58e005b

Please sign in to comment.