Fix navigation bar overlapping buttons in empty space view.

This commit is contained in:
Benoit Marty 2026-02-09 11:39:48 +01:00 committed by Benoit Marty
parent 380102cc26
commit 38f9f9c386

View file

@ -115,6 +115,9 @@ fun HomeSpacesView(
}
}
/**
* Ref: https://www.figma.com/design/pDlJZGBsri47FNTXMnEdXB/Compound-Android-Templates?node-id=1763-74215&t=9IGKMXHDfTGAqzQK-4
*/
@Composable
private fun EmptySpaceHomeView(
onCreateSpaceClick: () -> Unit,
@ -144,7 +147,10 @@ private fun EmptySpaceHomeView(
}
},
footer = {
ButtonColumnMolecule {
ButtonColumnMolecule(
// Add a padding bottom for the navigation bar
modifier = Modifier.padding(bottom = 112.dp)
) {
Button(
modifier = Modifier.fillMaxWidth(),
text = stringResource(CommonStrings.action_create_space),
@ -159,8 +165,7 @@ private fun EmptySpaceHomeView(
}
}
}
) {
}
)
}
@PreviewsDayNight