diff --git a/resources/js/components/FormField.vue b/resources/js/components/FormField.vue index a3015b57..67ec3edd 100644 --- a/resources/js/components/FormField.vue +++ b/resources/js/components/FormField.vue @@ -2,7 +2,16 @@
- +

diff --git a/resources/js/components/FormPasswordField.vue b/resources/js/components/FormPasswordField.vue index 4d1fd763..642e9384 100644 --- a/resources/js/components/FormPasswordField.vue +++ b/resources/js/components/FormPasswordField.vue @@ -2,7 +2,17 @@
- + @@ -10,6 +20,7 @@
+

@@ -35,7 +46,8 @@ data() { return { - currentType: this.inputType + currentType: this.inputType, + hasCapsLockOn: false, } }, @@ -104,5 +116,11 @@ default: false }, }, + + methods: { + checkCapsLock(event) { + this.hasCapsLockOn = event.getModifierState('CapsLock') ? true : false + }, + }, } \ No newline at end of file diff --git a/resources/js/views/twofaccounts/Create.vue b/resources/js/views/twofaccounts/Create.vue index cafd3f2b..7754f5dc 100644 --- a/resources/js/views/twofaccounts/Create.vue +++ b/resources/js/views/twofaccounts/Create.vue @@ -112,7 +112,7 @@

- +

@@ -125,9 +125,9 @@ - + - +
diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php index c648bfb4..fffe3a02 100644 --- a/resources/lang/en/auth.php +++ b/resources/lang/en/auth.php @@ -116,6 +116,7 @@ 'is_long_enough' => '8 characters min.', 'mandatory_rules' => 'Mandatory rules', 'optional_rules_you_should_follow' => 'Optional rules (highly recommanded)', + 'caps_lock_is_on' => 'Caps lock is On', ], ]; diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 239e9ccf..f63352cf 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -399,6 +399,18 @@ figure.no-icon { border-radius: 50%; } +.is-mid-width-field input { + width: 50% !important; +} + +.is-half-width-field input { + width: 50% !important; +} + +.is-third-width-field input { + width: 33% !important; +} + .is-toggle.buttons, .is-toggle.buttons a.button { margin-bottom: 0 !important;