diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsCheckBoxComponent.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsCheckBoxComponent.kt index 3ada51142..f3023875d 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsCheckBoxComponent.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsCheckBoxComponent.kt @@ -4,10 +4,7 @@ import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.LocalIndication import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource -import androidx.compose.foundation.layout.Column -import androidx.compose.foundation.layout.Row -import androidx.compose.foundation.layout.fillMaxWidth -import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.* import androidx.compose.material.ripple.LocalRippleTheme import androidx.compose.material3.* import androidx.compose.runtime.Composable @@ -53,7 +50,8 @@ fun SettingsCheckBoxComponent( .padding(horizontal = 16.dp, vertical = 6.dp), ) { Column( - modifier = Modifier.weight(1f) + modifier = Modifier.weight(1f), + verticalArrangement = Arrangement.Center ) { Text( modifier = Modifier diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsPreferenceComponent.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsPreferenceComponent.kt index 126634d55..c215e8ba8 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsPreferenceComponent.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/compose/settings/SettingsPreferenceComponent.kt @@ -2,6 +2,7 @@ package com.simplemobiletools.commons.compose.settings import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.combinedClickable +import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding @@ -39,6 +40,7 @@ fun SettingsPreferenceComponent( ) .padding(horizontal = 16.dp, vertical = 8.dp) .then(modifier), + verticalArrangement = Arrangement.Center ) { Text( text = preferenceTitle,