Skip to content

Commit

Permalink
Make SearchBar hint a single line
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Feb 20, 2024
1 parent 2022250 commit 3ba1dd6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import io.horizontalsystems.bankwallet.R
import io.horizontalsystems.bankwallet.ui.compose.ComposeAppTheme

@ExperimentalAnimationApi
@OptIn(ExperimentalComposeUiApi::class)
@Composable
fun SearchBar(
title: String,
Expand Down Expand Up @@ -84,7 +83,11 @@ fun SearchBar(
showClearButton = it.isNotEmpty()
},
placeholder = {
body_grey50(text = searchHintText)
body_grey50(
text = searchHintText,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
},
textStyle = ComposeAppTheme.typography.body,
colors = TextFieldDefaults.textFieldColors(
Expand Down

0 comments on commit 3ba1dd6

Please sign in to comment.