diff --git a/src/constants/environment.ts b/src/constants/environment.ts index 55c663816..7185337ec 100644 --- a/src/constants/environment.ts +++ b/src/constants/environment.ts @@ -28,7 +28,7 @@ export const POPUP_TYPE = url.searchParams.get('type') as PopupType || null; export const IN_FRAME = window.parent !== window; /** - * Running in a desktop or mobile browser + * Running in a desktop or mobile browser, but not as an extension. */ export const IS_WEB = PLATFORM === 'web'; diff --git a/src/popup/pages/SecureLoginSettings.vue b/src/popup/pages/SecureLoginSettings.vue index abd205fc4..853e33089 100644 --- a/src/popup/pages/SecureLoginSettings.vue +++ b/src/popup/pages/SecureLoginSettings.vue @@ -5,36 +5,44 @@ class="ion-padding ion-content-bg" >
+

- +

+ +

-
-
-
- - - -
+ +
+
+

+

+

+

+
-
- + + + +
@@ -154,7 +167,7 @@ import { import { IonPage, IonContent } from '@ionic/vue'; import { Form, Field } from 'vee-validate'; -import { AUTHENTICATION_TIMEOUTS, IS_MOBILE_APP } from '@/constants'; +import { AUTHENTICATION_TIMEOUTS, IS_MOBILE_APP, IS_WEB } from '@/constants'; import { ComponentRef } from '@/types'; import { useAuth, useModals, useUi } from '@/composables'; @@ -233,6 +246,9 @@ export default defineComponent({ }); return { + AUTHENTICATION_TIMEOUTS, + IS_WEB, + IS_MOBILE_APP, infoBoxEl, isBiometricLoginEnabled, isBiometricLoginAvailable, @@ -245,8 +261,6 @@ export default defineComponent({ setNewPassword, setBiometricLoginEnabled, msToMinutes, - IS_MOBILE_APP, - AUTHENTICATION_TIMEOUTS, }; }, }); @@ -258,62 +272,30 @@ export default defineComponent({ @use '@/styles/typography'; .secure-login-settings { - .top-wrapper { - padding-inline: var(--screen-padding-x); - margin-bottom: 28px; - } - - .text-description { - padding: 16px 0; - } + padding-top: 16px; + padding-bottom: 24px; - .options-info { - display: flex; - flex-direction: column; - justify-content: flex-start; - align-items: flex-start; - gap: 8px; - - &.dimmed { - opacity: 0.5; - } - } - - .options-label { - @extend %face-sans-15-medium; - } - - .options-description { - @extend %face-sans-15-regular; - opacity: 0.85; - } - - .options { - margin-top: 20px; + .form-group { padding-inline: var(--screen-padding-x); - display: flex; - flex-direction: column; - gap: 15px; - } - .inputs { - width: 100%; - - .new-password { - margin-top: 4px; + .form-group-fields { display: flex; flex-direction: column; - gap: 4px; + gap: 15px; + margin-top: 16px; } + } - .btn-main { - margin-top: 40px; - margin-bottom: 24px; - } + .dimmed { + opacity: 0.5; + } + + .btn-reset-password { + margin-top: 40px; } .info-box { - margin-bottom: 24px; + margin-top: 24px; } } diff --git a/src/styles/global.scss b/src/styles/global.scss index 5b6d06f99..40bfbd8c7 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -273,6 +273,7 @@ hr { &-subheading { @extend %face-sans-16-medium; + color: rgba($color-white, 0.75); white-space: pre-line; margin-bottom: 12px;