Ensure SearchBar are displayed with max width.
This commit is contained in:
parent
5f071daf64
commit
04eb59bd07
2 changed files with 4 additions and 1 deletions
|
|
@ -129,7 +129,9 @@ fun ChangeRolesView(
|
|||
) {
|
||||
val lazyListState = rememberLazyListState()
|
||||
SearchBar(
|
||||
modifier = Modifier.padding(bottom = 16.dp),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(bottom = 16.dp),
|
||||
placeHolderTitle = stringResource(CommonStrings.common_search_for_someone),
|
||||
query = state.query.orEmpty(),
|
||||
onQueryChange = { state.eventSink(ChangeRolesEvent.QueryChanged(it)) },
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ fun RoomSelectView(
|
|||
.consumeWindowInsets(paddingValues)
|
||||
) {
|
||||
SearchBar(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
placeHolderTitle = stringResource(CommonStrings.action_search),
|
||||
query = state.query,
|
||||
onQueryChange = { state.eventSink(RoomSelectEvents.UpdateQuery(it)) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue