From 34f3d6ff7c010159afa70ee9386529c87803fd05 Mon Sep 17 00:00:00 2001 From: tapframe <85391825+tapframe@users.noreply.github.com> Date: Wed, 27 May 2026 11:51:38 +0530 Subject: [PATCH] fix(authscreen): update layout to use widthIn for larger screen responsiveness --- .../kotlin/com/nuvio/app/features/auth/AuthScreen.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/auth/AuthScreen.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/auth/AuthScreen.kt index a2774cf9f..11e3a9e65 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/auth/AuthScreen.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/auth/AuthScreen.kt @@ -21,7 +21,7 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.statusBars -import androidx.compose.foundation.layout.width +import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.text.KeyboardActions @@ -136,6 +136,12 @@ fun AuthScreen( .padding(start = 24.dp, end = 24.dp, top = statusBarTop + 60.dp, bottom = 40.dp), horizontalAlignment = Alignment.CenterHorizontally, ) { + Column( + modifier = Modifier + .widthIn(max = 460.dp) + .fillMaxWidth(), + horizontalAlignment = Alignment.CenterHorizontally, + ) { Image( painter = painterResource(Res.drawable.app_logo_wordmark), contentDescription = null, @@ -417,6 +423,7 @@ fun AuthScreen( color = MaterialTheme.colorScheme.onSurfaceVariant, textAlign = TextAlign.Center, ) + } } } }