From 80a485b4bde9c79f4a2f10bc532e4f00b445c4af Mon Sep 17 00:00:00 2001 From: Nebojsa Vuksic Date: Fri, 1 Aug 2025 11:32:18 +0200 Subject: [PATCH] Remove unnecessary PopupMenu modifiers --- .../template/components/SearchBarWithAutoCompletion.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/kotlin/org/jetbrains/plugins/template/components/SearchBarWithAutoCompletion.kt b/src/main/kotlin/org/jetbrains/plugins/template/components/SearchBarWithAutoCompletion.kt index e6dfa04..9fe9ddc 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/components/SearchBarWithAutoCompletion.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/components/SearchBarWithAutoCompletion.kt @@ -19,7 +19,6 @@ import androidx.compose.ui.platform.LocalDensity import androidx.compose.ui.semantics.Role import androidx.compose.ui.unit.dp import androidx.compose.ui.window.PopupProperties -import androidx.compose.ui.zIndex import kotlinx.coroutines.flow.distinctUntilChanged import org.jetbrains.jewel.foundation.ExperimentalJewelApi import org.jetbrains.jewel.ui.component.Icon @@ -90,10 +89,7 @@ internal fun SearchBarWithAutoCompletion( horizontalAlignment = Alignment.Start, modifier = Modifier // Aligns PopupMenu with TextField - .width(with(LocalDensity.current) { textFieldWidth.toDp() }) - .wrapContentHeight() - .padding(vertical = 4.dp, horizontal = 2.dp) - .zIndex(5f), + .width(with(LocalDensity.current) { textFieldWidth.toDp() }), popupProperties = PopupProperties(focusable = false), ) { popupController.filteredItems.forEach { item ->