Fix Bug Member settings drops to the second line and overlaps when many boards are starred as favourites.

Thanks to xet7 !

Fixes #5943
This commit is contained in:
Lauri Ojansivu 2025-10-20 02:28:41 +03:00
parent 27e9d3ce47
commit 46d46e313c
6 changed files with 101 additions and 12 deletions

View file

@ -92,6 +92,18 @@ Template.userFormsLayout.onRendered(() => {
if (loginInput && loginInput.name && (loginInput.name.toLowerCase().includes('user') || loginInput.name.toLowerCase().includes('email'))) {
loginInput.setAttribute('autocomplete', 'username email');
}
// Add autocomplete attributes to password fields for WCAG compliance
const passwordInputs = document.querySelectorAll('input[type="password"]');
passwordInputs.forEach(input => {
if (input.name && input.name.includes('password')) {
if (input.name.includes('password_again') || input.name.includes('new_password')) {
input.setAttribute('autocomplete', 'new-password');
} else {
input.setAttribute('autocomplete', 'current-password');
}
}
});
});
});