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.
This commit is contained in:
MohitMaliFtechiz 2025-08-14 14:41:34 +05:30 committed by Kelson
parent 0e39ce6f9d
commit 54a66d1084

View File

@ -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,