Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Prevent input fields from increasing in height on Android (#1160)

Leendert de Borst8caa69e130c6
diff --git a/apps/mobile-app/app/(tabs)/credentials/index.tsx b/apps/mobile-app/app/(tabs)/credentials/index.tsx
index 328849413..ec524e184 100644
--- a/apps/mobile-app/app/(tabs)/credentials/index.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/index.tsx
@@ -399,6 +399,8 @@ export default function CredentialsScreen() : React.ReactNode {
value={searchQuery}
autoCorrect={false}
autoCapitalize="none"
+ multiline={false}
+ numberOfLines={1}
onChangeText={setSearchQuery}
clearButtonMode={Platform.OS === 'ios' ? 'while-editing' : 'never'}
/>
diff --git a/apps/mobile-app/app/login-settings.tsx b/apps/mobile-app/app/login-settings.tsx
index e272ae40e..d11edae98 100644
--- a/apps/mobile-app/app/login-settings.tsx
+++ b/apps/mobile-app/app/login-settings.tsx
@@ -195,6 +195,8 @@ export default function SettingsScreen() : React.ReactNode {
placeholderTextColor={colors.textMuted}
autoCapitalize="none"
autoCorrect={false}
+ multiline={false}
+ numberOfLines={1}
/>
</View>
)}
diff --git a/apps/mobile-app/app/login.tsx b/apps/mobile-app/app/login.tsx
index 0ae3f4652..93e022ec1 100644
--- a/apps/mobile-app/app/login.tsx
+++ b/apps/mobile-app/app/login.tsx
@@ -578,6 +578,8 @@ export default function LoginScreen() : React.ReactNode {
keyboardType="numeric"
maxLength={6}
placeholderTextColor={colors.textMuted}
+ multiline={false}
+ numberOfLines={1}
/>
</View>
<View style={styles.buttonContainer}>
@@ -629,6 +631,8 @@ export default function LoginScreen() : React.ReactNode {
autoCapitalize="none"
autoCorrect={false}
placeholderTextColor={colors.textMuted}
+ multiline={false}
+ numberOfLines={1}
/>
</View>
<Text style={styles.label}>{t('auth.password')}</Text>
@@ -648,6 +652,8 @@ export default function LoginScreen() : React.ReactNode {
placeholderTextColor={colors.textMuted}
autoCorrect={false}
autoCapitalize="none"
+ multiline={false}
+ numberOfLines={1}
/>
</View>
<TouchableOpacity
diff --git a/apps/mobile-app/app/unlock.tsx b/apps/mobile-app/app/unlock.tsx
index 44449d330..5aba23cab 100644
--- a/apps/mobile-app/app/unlock.tsx
+++ b/apps/mobile-app/app/unlock.tsx
@@ -310,6 +310,8 @@ export default function UnlockScreen() : React.ReactNode {
onChangeText={setPassword}
autoCapitalize="none"
autoCorrect={false}
+ multiline={false}
+ numberOfLines={1}
/>
</View>
diff --git a/apps/mobile-app/components/form/AdvancedPasswordField.tsx b/apps/mobile-app/components/form/AdvancedPasswordField.tsx
index 97462c28b..ca5f81996 100644
--- a/apps/mobile-app/components/form/AdvancedPasswordField.tsx
+++ b/apps/mobile-app/components/form/AdvancedPasswordField.tsx
@@ -411,6 +411,8 @@ const AdvancedPasswordFieldComponent = forwardRef<AdvancedPasswordFieldRef, Adva
style={styles.previewInput}
value={previewPassword}
editable={false}
+ multiline={false}
+ numberOfLines={1}
/>
<TouchableOpacity
style={styles.refreshButton}
@@ -531,6 +533,8 @@ const AdvancedPasswordFieldComponent = forwardRef<AdvancedPasswordFieldRef, Adva
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
secureTextEntry={!showPassword}
+ multiline={false}
+ numberOfLines={1}
{...props}
/>
diff --git a/apps/mobile-app/components/form/EmailDomainField.tsx b/apps/mobile-app/components/form/EmailDomainField.tsx
index 5deb7f661..ada5bc2c4 100644
--- a/apps/mobile-app/components/form/EmailDomainField.tsx
+++ b/apps/mobile-app/components/form/EmailDomainField.tsx
@@ -320,6 +320,8 @@ export const EmailDomainField: React.FC<EmailDomainFieldProps> = ({
autoCapitalize="none"
autoCorrect={false}
keyboardType="email-address"
+ multiline={false}
+ numberOfLines={1}
/>
{!isCustomDomain && (
diff --git a/apps/mobile-app/components/form/FormInputCopyToClipboard.tsx b/apps/mobile-app/components/form/FormInputCopyToClipboard.tsx
index 3546b46db..fdc9d3b87 100644
--- a/apps/mobile-app/components/form/FormInputCopyToClipboard.tsx
+++ b/apps/mobile-app/components/form/FormInputCopyToClipboard.tsx
@@ -162,6 +162,9 @@ const FormInputCopyToClipboard: React.FC<FormInputCopyToClipboardProps> = ({
fontSize: 16,
fontWeight: '500',
},
+ valueContainer: {
+ flex: 1,
+ },
});
return (
@@ -183,11 +186,11 @@ const FormInputCopyToClipboard: React.FC<FormInputCopyToClipboardProps> = ({
/>
)}
<View style={styles.inputContent}>
- <View>
+ <View style={styles.valueContainer}>
<Text style={styles.label}>
{label}
</Text>
- <Text style={styles.value}>
+ <Text style={styles.value} numberOfLines={1} ellipsizeMode="tail">
{displayValue}
</Text>
</View>
diff --git a/apps/mobile-app/components/form/ValidatedFormField.tsx b/apps/mobile-app/components/form/ValidatedFormField.tsx
index 2abe3dacc..b43de3d1b 100644
--- a/apps/mobile-app/components/form/ValidatedFormField.tsx
+++ b/apps/mobile-app/components/form/ValidatedFormField.tsx
@@ -130,6 +130,8 @@ const ValidatedFormFieldComponent = forwardRef<ValidatedFormFieldRef, ValidatedF
clearButtonMode={Platform.OS === 'ios' ? "while-editing" : "never"}
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
+ multiline={false}
+ numberOfLines={1}
{...props}
/>
{showClearButton && (
diff --git a/apps/mobile-app/components/themed/ThemedTextInput.tsx b/apps/mobile-app/components/themed/ThemedTextInput.tsx
index 4ec0b37df..c990401bd 100644
--- a/apps/mobile-app/components/themed/ThemedTextInput.tsx
+++ b/apps/mobile-app/components/themed/ThemedTextInput.tsx
@@ -41,6 +41,8 @@ export const ThemedTextInput: React.FC<ThemedTextInputProps> = ({ error, style,
autoCapitalize="none"
autoComplete="off"
autoCorrect={false}
+ multiline={false}
+ numberOfLines={1}
{...props}
/>
</View>