Skip to content

Commit 577eb7a

Browse files
committed
LoadingRoomNode : fix windowInsets...
1 parent 1ca7b0a commit 577eb7a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

appnav/src/main/kotlin/io/element/android/appnav/room/LoadingRoomNodeView.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ fun LoadingRoomNodeView(
7272
modifier = Modifier
7373
.fillMaxSize()
7474
.padding(padding)
75-
.padding(16.dp), contentAlignment = Alignment.Center
75+
.padding(16.dp),
76+
contentAlignment = Alignment.Center
7677
) {
7778
if (state is LoadingRoomState.Error) {
7879
Text(
@@ -90,9 +91,12 @@ fun LoadingRoomNodeView(
9091

9192
@OptIn(ExperimentalMaterial3Api::class)
9293
@Composable
93-
private fun LoadingRoomTopBar(onBackClicked: () -> Unit) {
94+
private fun LoadingRoomTopBar(
95+
onBackClicked: () -> Unit,
96+
modifier: Modifier = Modifier
97+
) {
9498
TopAppBar(
95-
modifier = Modifier,
99+
modifier = modifier,
96100
navigationIcon = {
97101
BackButton(onClick = onBackClicked)
98102
},
@@ -112,6 +116,7 @@ private fun LoadingRoomTopBar(onBackClicked: () -> Unit) {
112116
PlaceholderAtom(width = 45.dp, height = 7.dp)
113117
}
114118
},
119+
windowInsets = WindowInsets(0.dp),
115120
)
116121
}
117122

0 commit comments

Comments
 (0)