Skip to content

Commit

Permalink
fix: force single line api url and api key input
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Dec 30, 2024
1 parent 44c69d2 commit e968458
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
package com.bnyro.translate.ui.components.prefs

import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.input.ImeAction
import com.bnyro.translate.util.Preferences

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun EditTextPreference(
modifier: Modifier = Modifier,
Expand All @@ -46,6 +47,8 @@ fun EditTextPreference(
text = labelText
)
},
singleLine = true,
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done),
modifier = modifier
.fillMaxWidth()
)
Expand Down

0 comments on commit e968458

Please sign in to comment.