Compare commits

...

2 Commits

Author SHA1 Message Date
MaxJa4
0f2a11af43 Add max length for PW
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 51s
2024-01-27 13:57:39 +01:00
MaxJa4
866ff65eac Add tooltip delay and fix stuck tooltips. 2024-01-27 13:56:34 +01:00
2 changed files with 7 additions and 3 deletions

View File

@@ -5,7 +5,11 @@ document.addEventListener('DOMContentLoaded', function() {
function initTooltips(elementRoot) {
const tooltipTriggerList = elementRoot.querySelectorAll('[data-bs-action="tooltip"]');
tooltipTriggerList.forEach((elem) => {
new bootstrap.Tooltip(elem);
new bootstrap.Tooltip(elem, {
trigger: 'hover',
delay: {show: 1000, hide: 0},
container: 'body'
});
});
}

View File

@@ -16,10 +16,10 @@
</div>
</div>
<div class="form-floating mb-3">
<input class="form-control form-control-lg pb-1" type="password" minlength="8" id="password" name="password" placeholder="Passwort" required>
<input class="form-control form-control-lg pb-1" type="password" minlength="8" maxlength="72" id="password" name="password" placeholder="Passwort" required>
<label for="password">Passwort</label>
<div class="invalid-feedback">
Mindestlänge: 8 Zeichen
Min. 8 Zeichen, max. 72 Zeichen
</div>
</div>
<div class="form-floating">