File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/src/commonMain/kotlin/de/westnordost/streetcomplete/ui/common/settings Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.RowScope
99import androidx.compose.foundation.layout.fillMaxWidth
1010import androidx.compose.foundation.layout.heightIn
1111import androidx.compose.foundation.layout.padding
12+ import androidx.compose.foundation.layout.widthIn
1213import androidx.compose.material.ContentAlpha
1314import androidx.compose.material.Divider
1415import androidx.compose.material.Icon
@@ -80,7 +81,7 @@ fun Preference(
8081 ) {
8182 Text (
8283 text = name,
83- modifier = Modifier .weight(2 / 3f )
84+ modifier = Modifier .weight(1f )
8485 )
8586 if (value != null ) {
8687 CompositionLocalProvider (
@@ -96,7 +97,7 @@ fun Preference(
9697 alignment = Alignment .End
9798 ),
9899 verticalAlignment = Alignment .CenterVertically ,
99- modifier = Modifier .weight( 1 / 3f )
100+ modifier = Modifier .widthIn(max = 160 .dp )
100101 ) { value() }
101102 }
102103 }
You can’t perform that action at this time.
0 commit comments