From 54a66d1084dc699dafd076db027a8b16e65d7cf9 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Thu, 14 Aug 2025 14:41:34 +0530 Subject: [PATCH] Fixed: The search placeholder was cut off in the `Romansh` language. * Updated the placeholder text to display on a single line and show an ellipsis (...) at the end if the text is too long. --- .../kiwix/kiwixmobile/core/ui/components/KiwixSearchView.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/ui/components/KiwixSearchView.kt b/core/src/main/java/org/kiwix/kiwixmobile/core/ui/components/KiwixSearchView.kt index b71248743..0d609d552 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/ui/components/KiwixSearchView.kt +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/ui/components/KiwixSearchView.kt @@ -38,6 +38,7 @@ import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.input.ImeAction +import androidx.compose.ui.text.style.TextOverflow.Companion.Ellipsis import org.kiwix.kiwixmobile.core.R import org.kiwix.kiwixmobile.core.utils.ComposeDimens @@ -75,7 +76,9 @@ fun KiwixSearchView( Text( text = placeholder, color = Color.LightGray, - fontSize = ComposeDimens.EIGHTEEN_SP + fontSize = ComposeDimens.EIGHTEEN_SP, + maxLines = ONE, + overflow = Ellipsis ) }, colors = colors,