Skip to content

Commit c35d27a

Browse files
committed
Fix filter checkbox layout
1 parent e85c804 commit c35d27a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.idea/misc.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/in/jitinsharma/android/conf/ui/FiltersScreen.kt

+6-4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ fun FiltersScreen(
9090
}, enabled = true
9191
)
9292
) {
93-
Row(modifier = Modifier.fillMaxWidth()) {
93+
Row(
94+
modifier = Modifier.fillMaxWidth(),
95+
verticalAlignment = Alignment.CenterVertically
96+
) {
9497
Checkbox(
9598
checked = cfpFilterCheckState.value,
9699
onCheckedChange = {
@@ -103,7 +106,6 @@ fun FiltersScreen(
103106
)
104107
Text(
105108
text = "Cfp Open",
106-
modifier = Modifier.padding(start = 8.dp, top = 2.dp),
107109
color = themeColors.primary,
108110
style = MaterialTheme.typography.body2
109111
)
@@ -201,7 +203,8 @@ fun CountryList(
201203
Row(
202204
modifier = Modifier
203205
.fillMaxWidth()
204-
.padding(start = 8.dp, bottom = 4.dp)
206+
.padding(start = 8.dp, bottom = 4.dp),
207+
verticalAlignment = Alignment.CenterVertically,
205208
) {
206209
Checkbox(
207210
checked = countryChecked.value,
@@ -220,7 +223,6 @@ fun CountryList(
220223
)
221224
Text(
222225
text = country.name,
223-
modifier = Modifier.padding(start = 8.dp, top = 2.dp),
224226
color = themeColors.primary,
225227
style = MaterialTheme.typography.body2
226228
)

0 commit comments

Comments
 (0)