Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix copy button text is cut in 2fa settings page

Ammar Ahmede023f11cd90f
diff --git a/apps/mobile/app/screens/settings/2fa.tsx b/apps/mobile/app/screens/settings/2fa.tsx
index f478e1bde..1db31cf50 100644
--- a/apps/mobile/app/screens/settings/2fa.tsx
+++ b/apps/mobile/app/screens/settings/2fa.tsx
@@ -322,8 +322,8 @@ export const MFASetup = ({
method?.id === "email"
? user?.email
: method?.id === "app"
- ? authenticatorDetails?.sharedKey || ""
- : undefined
+ ? authenticatorDetails?.sharedKey || ""
+ : undefined
}
multiline={method.id === "app"}
onChangeText={(value) => {
@@ -352,16 +352,20 @@ export const MFASetup = ({
<Button
onPress={onSendCode}
loading={sending}
+ style={{
+ paddingVertical: 0,
+ paddingHorizontal: 0
+ }}
title={
sending
? null
: method.id === "app"
- ? strings.copy()
- : `${
- seconds
- ? strings.resendCode(seconds as number)
- : strings.sendCode()
- }`
+ ? strings.copy()
+ : `${
+ seconds
+ ? strings.resendCode(seconds as number)
+ : strings.sendCode()
+ }`
}
/>
)