Skip to content

Commit b701177

Browse files
committed
style: update SearchBar contentPadding to better align region rows
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 6ccc500 commit b701177

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

apps/flipcash/shared/currency-selection/ui/src/main/kotlin/com/flipcash/app/currency/internal/RegionSelectionModalContent.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.flipcash.app.currency.internal
22

33
import androidx.compose.foundation.layout.Arrangement
44
import androidx.compose.foundation.layout.Column
5+
import androidx.compose.foundation.layout.PaddingValues
56
import androidx.compose.foundation.layout.imePadding
67
import androidx.compose.foundation.layout.padding
78
import androidx.compose.runtime.Composable
@@ -52,7 +53,8 @@ internal fun RegionSelectionModalContent(viewModel: CurrencyViewModel) {
5253
}
5354
SearchBar(
5455
modifier = Modifier.padding(top = CodeTheme.dimens.grid.x3),
55-
state = state.searchState
56+
state = state.searchState,
57+
contentPadding = PaddingValues(start = CodeTheme.dimens.grid.x1),
5658
)
5759

5860
RegionList(

apps/flipcash/shared/currency-selection/ui/src/main/kotlin/com/flipcash/app/currency/internal/components/SearchBar.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.flipcash.app.currency.internal.components
22

3+
import androidx.compose.foundation.layout.PaddingValues
34
import androidx.compose.foundation.layout.padding
45
import androidx.compose.foundation.text.input.TextFieldState
56
import androidx.compose.foundation.text.input.clearText
@@ -20,11 +21,13 @@ import com.getcode.ui.components.TextInput
2021
internal fun SearchBar(
2122
state: TextFieldState,
2223
modifier: Modifier = Modifier,
24+
contentPadding: PaddingValues = PaddingValues(),
2325
) {
2426
TextInput(
2527
modifier = modifier
2628
.padding(horizontal = CodeTheme.dimens.grid.x3),
2729
state = state,
30+
contentPadding = contentPadding,
2831
leadingIcon = {
2932
Icon(
3033
modifier = Modifier.padding(start = CodeTheme.dimens.grid.x1),

0 commit comments

Comments
 (0)