mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-12 21:35:18 -05:00
fix: improve password manager autofill compatibility on login page (#6662)
Co-authored-by: Henri Cook <henri.cook@linklaters.com> Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
@@ -60,6 +60,7 @@
|
|||||||
<v-form @submit.prevent="authenticate">
|
<v-form @submit.prevent="authenticate">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-if="$appInfo.allowPasswordLogin"
|
v-if="$appInfo.allowPasswordLogin"
|
||||||
|
id="username"
|
||||||
v-model="form.email"
|
v-model="form.email"
|
||||||
:prepend-inner-icon="$globals.icons.email"
|
:prepend-inner-icon="$globals.icons.email"
|
||||||
variant="solo-filled"
|
variant="solo-filled"
|
||||||
@@ -67,7 +68,7 @@
|
|||||||
width="100%"
|
width="100%"
|
||||||
autofocus
|
autofocus
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
name="login"
|
name="username"
|
||||||
:label="$t('user.email-or-username')"
|
:label="$t('user.email-or-username')"
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
@@ -375,6 +376,13 @@ export default defineNuxtComponent({
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="css" scoped>
|
||||||
|
/* Fix password manager autofill detection - Vuetify uses opacity:0 during animation */
|
||||||
|
:deep(.v-field__input) {
|
||||||
|
opacity: 1 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<style lang="css">
|
<style lang="css">
|
||||||
.max-button {
|
.max-button {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
|||||||
Reference in New Issue
Block a user