From 48b3eb7a0d6dc5770149cc05aa17036a0639fa0c Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 30 Sep 2026 14:08:48 +0200 Subject: [PATCH] Make the content of SignedOutView scrollable for small screens --- .../features/signedout/impl/SignedOutView.kt | 43 ++++++++----------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/features/signedout/impl/src/main/kotlin/io/element/android/features/signedout/impl/SignedOutView.kt b/features/signedout/impl/src/main/kotlin/io/element/android/features/signedout/impl/SignedOutView.kt index 9a5e7ab0cc..bb6e844606 100644 --- a/features/signedout/impl/src/main/kotlin/io/element/android/features/signedout/impl/SignedOutView.kt +++ b/features/signedout/impl/src/main/kotlin/io/element/android/features/signedout/impl/SignedOutView.kt @@ -10,7 +10,6 @@ package io.element.android.features.signedout.impl import androidx.activity.compose.BackHandler import androidx.compose.foundation.layout.Arrangement -import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth @@ -18,7 +17,6 @@ import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.systemBarsPadding import androidx.compose.runtime.Composable -import androidx.compose.ui.BiasAlignment import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.tooling.preview.PreviewParameter @@ -54,6 +52,7 @@ fun SignedOutView( .fillMaxSize() .systemBarsPadding() .imePadding(), + isScrollable = true, header = { SignedOutHeader(state) }, content = { SignedOutContent(state.signedOutMatrixUser) }, footer = { @@ -85,7 +84,7 @@ private fun SignedOutContent( modifier = Modifier .fillMaxSize() .padding(top = 8.dp), - verticalArrangement = Arrangement.spacedBy(16.dp), + verticalArrangement = Arrangement.spacedBy(24.dp), ) { AccountInfoCard( AccountInfoCardState( @@ -93,30 +92,22 @@ private fun SignedOutContent( mode = AccountInfoCardMode.Simple, ) ) - Box( - modifier = Modifier.fillMaxSize(), - contentAlignment = BiasAlignment( - horizontalBias = 0f, - verticalBias = -0.4f - ) - ) { - VisualList( - items = persistentListOf( - VisualListItemData( - message = stringResource(id = R.string.screen_signed_out_reason_1), - iconVector = CompoundIcons.UserProfile(), - ), - VisualListItemData( - message = stringResource(id = R.string.screen_signed_out_reason_2), - iconVector = CompoundIcons.Lock(), - ), - VisualListItemData( - message = stringResource(id = R.string.screen_signed_out_reason_3), - iconVector = CompoundIcons.Block(), - ), + VisualList( + items = persistentListOf( + VisualListItemData( + message = stringResource(id = R.string.screen_signed_out_reason_1), + iconVector = CompoundIcons.UserProfile(), ), - ) - } + VisualListItemData( + message = stringResource(id = R.string.screen_signed_out_reason_2), + iconVector = CompoundIcons.Lock(), + ), + VisualListItemData( + message = stringResource(id = R.string.screen_signed_out_reason_3), + iconVector = CompoundIcons.Block(), + ), + ), + ) } }