diff --git a/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/leave/LeaveSpaceView.kt b/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/leave/LeaveSpaceView.kt index 2a3cd73ea9..6952229f3a 100644 --- a/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/leave/LeaveSpaceView.kt +++ b/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/leave/LeaveSpaceView.kt @@ -71,6 +71,12 @@ fun LeaveSpaceView( ) { Scaffold( modifier = modifier, + topBar = { + LeaveSpaceHeader( + state = state, + onBackClick = onCancel, + ) + }, containerColor = ElementTheme.colors.bgCanvasDefault, ) { padding -> Column( @@ -81,10 +87,6 @@ fun LeaveSpaceView( .fillMaxSize() .padding(16.dp) ) { - LeaveSpaceHeader( - state = state, - onBackClick = onCancel, - ) LazyColumn( modifier = Modifier .weight(1f),