From 45c2334754f7d4851d81b435f744fd23e40d2af7 Mon Sep 17 00:00:00 2001 From: Calin Cara Date: Mon, 12 Jun 2023 01:41:24 +0200 Subject: [PATCH] Fix big font size cutting off settings options (#534) * Fix big font size cutting off settings options * Run formatKotlin --------- Co-authored-by: Calin Cara --- .../settings/lookandfeel/LookAndFeelActivity.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/jerboa/ui/components/settings/lookandfeel/LookAndFeelActivity.kt b/app/src/main/java/com/jerboa/ui/components/settings/lookandfeel/LookAndFeelActivity.kt index f56ecc9e3..0c32ee04f 100644 --- a/app/src/main/java/com/jerboa/ui/components/settings/lookandfeel/LookAndFeelActivity.kt +++ b/app/src/main/java/com/jerboa/ui/components/settings/lookandfeel/LookAndFeelActivity.kt @@ -3,6 +3,8 @@ package com.jerboa.ui.components.settings.lookandfeel import android.util.Log import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.verticalScroll import androidx.compose.material.icons.Icons import androidx.compose.material.icons.outlined.* import androidx.compose.material3.ExperimentalMaterial3Api @@ -60,6 +62,8 @@ fun LookAndFeelActivity( val useCustomTabsState = rememberBooleanSettingState(settings?.useCustomTabs ?: true) val snackbarHostState = remember { SnackbarHostState() } + + val scrollState = rememberScrollState() fun updateAppSettings() { appSettingsViewModel.update( @@ -85,7 +89,11 @@ fun LookAndFeelActivity( SimpleTopAppBar(text = stringResource(R.string.look_and_feel_look_and_feel), navController = navController) }, content = { padding -> - Column(modifier = Modifier.padding(padding)) { + Column( + modifier = Modifier + .verticalScroll(scrollState) + .padding(padding), + ) { SettingsSlider( modifier = Modifier.padding(top = 10.dp), valueRange = 8f..48f,