Skip to content

Commit 2afc284

Browse files
committed
supersedes #6787, thanks @deevroman for looking into it and posting the results
1 parent 442199d commit 2afc284

File tree

1 file changed

+3
-2
lines changed
  • app/src/commonMain/kotlin/de/westnordost/streetcomplete/ui/common/settings

1 file changed

+3
-2
lines changed

app/src/commonMain/kotlin/de/westnordost/streetcomplete/ui/common/settings/Preference.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.RowScope
99
import androidx.compose.foundation.layout.fillMaxWidth
1010
import androidx.compose.foundation.layout.heightIn
1111
import androidx.compose.foundation.layout.padding
12+
import androidx.compose.foundation.layout.widthIn
1213
import androidx.compose.material.ContentAlpha
1314
import androidx.compose.material.Divider
1415
import 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
}

0 commit comments

Comments
 (0)