From 902b976bbee7eb0495dcb274945d8ebdf834a0d0 Mon Sep 17 00:00:00 2001 From: Acclorite <140836141+Acclorite@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:16:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Fix=20search=20field=20?= =?UTF-8?q?taking=20the=20whole=20screen=20height?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed bug where search field took all the height of the screen --- .../presentation/core/components/common/SearchTextField.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/ua/acclorite/book_story/presentation/core/components/common/SearchTextField.kt b/app/src/main/java/ua/acclorite/book_story/presentation/core/components/common/SearchTextField.kt index ffde80d7..6da6840d 100644 --- a/app/src/main/java/ua/acclorite/book_story/presentation/core/components/common/SearchTextField.kt +++ b/app/src/main/java/ua/acclorite/book_story/presentation/core/components/common/SearchTextField.kt @@ -1,7 +1,6 @@ package ua.acclorite.book_story.presentation.core.components.common import androidx.compose.foundation.layout.Box -import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.text.BasicTextField import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions @@ -60,10 +59,7 @@ fun SearchTextField( ), cursorBrush = SolidColor(MaterialTheme.colorScheme.onSurfaceVariant) ) { innerText -> - Box( - modifier = Modifier.fillMaxHeight(), - contentAlignment = Alignment.CenterStart - ) { + Box(contentAlignment = Alignment.CenterStart) { if (query.isEmpty()) { Text( text = stringResource(id = R.string.search_field_empty),