mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
Fix navigation bar overlapping buttons in empty space view.
This commit is contained in:
committed by
Benoit Marty
parent
380102cc26
commit
38f9f9c386
+8
-3
@@ -115,6 +115,9 @@ fun HomeSpacesView(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ref: https://www.figma.com/design/pDlJZGBsri47FNTXMnEdXB/Compound-Android-Templates?node-id=1763-74215&t=9IGKMXHDfTGAqzQK-4
|
||||||
|
*/
|
||||||
@Composable
|
@Composable
|
||||||
private fun EmptySpaceHomeView(
|
private fun EmptySpaceHomeView(
|
||||||
onCreateSpaceClick: () -> Unit,
|
onCreateSpaceClick: () -> Unit,
|
||||||
@@ -144,7 +147,10 @@ private fun EmptySpaceHomeView(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
footer = {
|
footer = {
|
||||||
ButtonColumnMolecule {
|
ButtonColumnMolecule(
|
||||||
|
// Add a padding bottom for the navigation bar
|
||||||
|
modifier = Modifier.padding(bottom = 112.dp)
|
||||||
|
) {
|
||||||
Button(
|
Button(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
text = stringResource(CommonStrings.action_create_space),
|
text = stringResource(CommonStrings.action_create_space),
|
||||||
@@ -159,8 +165,7 @@ private fun EmptySpaceHomeView(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
) {
|
)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
|
|||||||
Reference in New Issue
Block a user