Skip to content

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

update width

ammarahm-eda24bbac4b524
diff --git a/apps/mobile/src/components/Dialog/DialogContainer.js b/apps/mobile/src/components/Dialog/DialogContainer.js
index 847bd9e00..07e5c6ac4 100644
--- a/apps/mobile/src/components/Dialog/DialogContainer.js
+++ b/apps/mobile/src/components/Dialog/DialogContainer.js
@@ -13,7 +13,7 @@ const DialogContainer = ({width, height, ...restProps}) => {
{...restProps}
style={{
...getElevation(5),
- width: width || DDS.isLargeTablet() ? 350 : '80%',
+ width: width || DDS.isLargeTablet() ? 350 : '85%',
maxHeight: height || 350,
borderRadius: 5,
backgroundColor: colors.bg,
diff --git a/apps/mobile/src/components/Dialog/index.js b/apps/mobile/src/components/Dialog/index.js
index 09e394203..0ce4791d0 100644
--- a/apps/mobile/src/components/Dialog/index.js
+++ b/apps/mobile/src/components/Dialog/index.js
@@ -91,7 +91,7 @@ export class Dialog extends Component {
<View
style={{
...getElevation(5),
- width: DDS.isTab ? 350 : '80%',
+ width: DDS.isTab ? 350 : '85%',
maxHeight: 350,
borderRadius: 5,
backgroundColor: colors.bg,
diff --git a/apps/mobile/src/components/JumpToDialog/index.js b/apps/mobile/src/components/JumpToDialog/index.js
index 3ea733d9d..f56d8d5ff 100644
--- a/apps/mobile/src/components/JumpToDialog/index.js
+++ b/apps/mobile/src/components/JumpToDialog/index.js
@@ -95,7 +95,7 @@ const JumpToDialog = () => {
<View
style={{
...getElevation(5),
- width: DDS.isTab ? 500 : '80%',
+ width: DDS.isTab ? 500 : '85%',
backgroundColor: colors.bg,
zIndex: 100,
bottom: 20,
diff --git a/apps/mobile/src/components/ResultDialog/index.js b/apps/mobile/src/components/ResultDialog/index.js
index f43fb23e8..1c9f16bca 100644
--- a/apps/mobile/src/components/ResultDialog/index.js
+++ b/apps/mobile/src/components/ResultDialog/index.js
@@ -46,7 +46,7 @@ const ResultDialog = () => {
<View
style={{
...getElevation(5),
- width: DDS.isTab ? 350 : '80%',
+ width: DDS.isTab ? 350 : '85%',
maxHeight: 350,
borderRadius: 5,
backgroundColor: colors.bg,
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index c3b27ad3a..977ae6cdd 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -147,7 +147,6 @@ export class VaultDialog extends Component {
};
onPress = async () => {
-
if (this.state.revokeFingerprintAccess) {
await this._revokeFingerprintAccess();
close();
@@ -371,7 +370,7 @@ export class VaultDialog extends Component {
},
});
eSendEvent('vaultUpdated');
- ToastEvent.show("Fingerprint access revoked!", 'success');
+ ToastEvent.show('Fingerprint access revoked!', 'success');
} catch (e) {
ToastEvent.show(e.message, 'error', 'local');
}
@@ -431,7 +430,7 @@ export class VaultDialog extends Component {
<View
style={{
...getElevation(5),
- width: DDS.isTab ? 350 : '80%',
+ width: DDS.isTab ? 350 : '85%',
borderRadius: 5,
backgroundColor: colors.bg,
paddingHorizontal: ph,
@@ -442,9 +441,9 @@ export class VaultDialog extends Component {
!novault
? 'Create Vault'
: fingerprintAccess
- ? 'Fingerprint Unlock'
+ ? 'Vault Fingerprint Unlock'
: this.state.revokeFingerprintAccess
- ? 'Revoke Fingerprint Unlock'
+ ? 'Revoke Vault Fingerprint Unlock'
: changePassword
? 'Change Vault Password'
: note.locked
@@ -461,9 +460,9 @@ export class VaultDialog extends Component {
!novault
? 'Set a password to create vault'
: fingerprintAccess
- ? 'Enter vault password to enable access to the vault with fingerprint'
+ ? 'Enter vault password to enable fingerprint unlocking'
: this.state.revokeFingerprintAccess
- ? 'Disable vault unlocking with fingerprint'
+ ? 'Disable vault fingerprint unlock '
: changePassword
? 'Setup a new password for the vault.'
: permanant
@@ -492,6 +491,14 @@ export class VaultDialog extends Component {
onChangeText={(value) => {
this.password = value;
}}
+ marginBottom={
+ !this.state.biometricUnlock ||
+ !this.state.isBiometryEnrolled ||
+ !novault ||
+ changePassword
+ ? 0
+ : 10
+ }
secureTextEntry
placeholder={changePassword ? 'Current Password' : 'Password'}
/>