mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
LoadingRoomNode : fix windowInsets...
This commit is contained in:
@@ -72,7 +72,8 @@ fun LoadingRoomNodeView(
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.padding(padding)
|
.padding(padding)
|
||||||
.padding(16.dp), contentAlignment = Alignment.Center
|
.padding(16.dp),
|
||||||
|
contentAlignment = Alignment.Center
|
||||||
) {
|
) {
|
||||||
if (state is LoadingRoomState.Error) {
|
if (state is LoadingRoomState.Error) {
|
||||||
Text(
|
Text(
|
||||||
@@ -90,9 +91,12 @@ fun LoadingRoomNodeView(
|
|||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
private fun LoadingRoomTopBar(onBackClicked: () -> Unit) {
|
private fun LoadingRoomTopBar(
|
||||||
|
onBackClicked: () -> Unit,
|
||||||
|
modifier: Modifier = Modifier
|
||||||
|
) {
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
modifier = Modifier,
|
modifier = modifier,
|
||||||
navigationIcon = {
|
navigationIcon = {
|
||||||
BackButton(onClick = onBackClicked)
|
BackButton(onClick = onBackClicked)
|
||||||
},
|
},
|
||||||
@@ -112,6 +116,7 @@ private fun LoadingRoomTopBar(onBackClicked: () -> Unit) {
|
|||||||
PlaceholderAtom(width = 45.dp, height = 7.dp)
|
PlaceholderAtom(width = 45.dp, height = 7.dp)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
windowInsets = WindowInsets(0.dp),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user