Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-04-22 17:09:02 +02:00 committed by Marcel Hibbe
parent 29d5293587
commit 350bba1b95
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
3 changed files with 9 additions and 2 deletions

View File

@ -97,7 +97,7 @@ fun AppBar(
onUpdateSearchQuery("")
}
) {
Text(text = "Add")
Text(text = context.getString(R.string.add_participants))
}
}
}

View File

@ -39,7 +39,7 @@ fun SearchComponent(text: String, onTextChange: (String) -> Unit, onDisableSearc
TextField(
modifier = Modifier
.background(MaterialTheme.colorScheme.background)
.fillMaxWidth(0.85f)
.fillMaxWidth(SearchComponentCompanionClass.WIDTH_RATIO)
.height(60.dp),
value = text,
onValueChange = { onTextChange(it) },
@ -100,3 +100,9 @@ fun searchKeyboardActions(text: String, keyboardController: SoftwareKeyboardCont
}
}
)
class SearchComponentCompanionClass() {
companion object {
const val WIDTH_RATIO = 0.85f
}
}

View File

@ -41,6 +41,7 @@ How to translate with transifex:
<!-- Bottom Navigation -->
<string name="nc_settings">Settings</string>
<string name="add_participants">Add</string>
<!-- Server selection -->
<string name="nc_server_connect">Test server connection</string>