From 56165b2fafcf42e6bb94a8085ea5d2af819f2e9f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 9 Feb 2026 11:39:48 +0100 Subject: [PATCH] Fix navigation bar overlapping buttons in empty space view. --- .../features/home/impl/spaces/HomeSpacesView.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/spaces/HomeSpacesView.kt b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/spaces/HomeSpacesView.kt index b1000ecc39..4e93cec22d 100644 --- a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/spaces/HomeSpacesView.kt +++ b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/spaces/HomeSpacesView.kt @@ -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