mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-12-05 06:11:52 +00:00
Remove unnecessary Column usage
This commit is contained in:
parent
5bae830655
commit
0657ead6a5
@ -51,10 +51,8 @@ internal fun <T> SearchBarWithAutoCompletion(
|
|||||||
.collect { searchTerm -> popupController.onQueryChanged(searchTerm) }
|
.collect { searchTerm -> popupController.onQueryChanged(searchTerm) }
|
||||||
}
|
}
|
||||||
|
|
||||||
Column(modifier = modifier) {
|
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = modifier
|
||||||
.fillMaxWidth()
|
|
||||||
.padding(8.dp)
|
.padding(8.dp)
|
||||||
) {
|
) {
|
||||||
var textFieldWidth by remember { mutableIntStateOf(-1) }
|
var textFieldWidth by remember { mutableIntStateOf(-1) }
|
||||||
@ -99,7 +97,7 @@ internal fun <T> SearchBarWithAutoCompletion(
|
|||||||
) {
|
) {
|
||||||
popupController.filteredItems.forEach { item ->
|
popupController.filteredItems.forEach { item ->
|
||||||
selectableItem(
|
selectableItem(
|
||||||
popupController. isItemSelected(item),
|
popupController.isItemSelected(item),
|
||||||
onClick = {
|
onClick = {
|
||||||
onSelectCompletion(item)
|
onSelectCompletion(item)
|
||||||
popupController.onItemAutocompleteConfirmed()
|
popupController.onItemAutocompleteConfirmed()
|
||||||
@ -112,7 +110,6 @@ internal fun <T> SearchBarWithAutoCompletion(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user