mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Ensure SearchBar are displayed with max width.
This commit is contained in:
+3
-1
@@ -129,7 +129,9 @@ fun ChangeRolesView(
|
|||||||
) {
|
) {
|
||||||
val lazyListState = rememberLazyListState()
|
val lazyListState = rememberLazyListState()
|
||||||
SearchBar(
|
SearchBar(
|
||||||
modifier = Modifier.padding(bottom = 16.dp),
|
modifier = Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
|
.padding(bottom = 16.dp),
|
||||||
placeHolderTitle = stringResource(CommonStrings.common_search_for_someone),
|
placeHolderTitle = stringResource(CommonStrings.common_search_for_someone),
|
||||||
query = state.query.orEmpty(),
|
query = state.query.orEmpty(),
|
||||||
onQueryChange = { state.eventSink(ChangeRolesEvent.QueryChanged(it)) },
|
onQueryChange = { state.eventSink(ChangeRolesEvent.QueryChanged(it)) },
|
||||||
|
|||||||
+1
@@ -127,6 +127,7 @@ fun RoomSelectView(
|
|||||||
.consumeWindowInsets(paddingValues)
|
.consumeWindowInsets(paddingValues)
|
||||||
) {
|
) {
|
||||||
SearchBar(
|
SearchBar(
|
||||||
|
modifier = Modifier.fillMaxWidth(),
|
||||||
placeHolderTitle = stringResource(CommonStrings.action_search),
|
placeHolderTitle = stringResource(CommonStrings.action_search),
|
||||||
query = state.query,
|
query = state.query,
|
||||||
onQueryChange = { state.eventSink(RoomSelectEvents.UpdateQuery(it)) },
|
onQueryChange = { state.eventSink(RoomSelectEvents.UpdateQuery(it)) },
|
||||||
|
|||||||
Reference in New Issue
Block a user