Change positioning strategy for reveal button to fix more complex layouts

This commit is contained in:
Johannes Zellner
2021-11-16 13:20:22 +01:00
parent b54c6ff5c5
commit f3f968e995

View File

@@ -13,9 +13,10 @@ angular.module('Application').directive('passwordReveal', function () {
var eye = document.createElement('i');
eye.classList.add('fa');
eye.classList.add('fa-eye-slash');
eye.style.position = 'absolute';
eye.style.right = '10px';
eye.style.bottom = '10px';
eye.style.position = 'relative';
eye.style.float = 'right';
eye.style.marginTop = '-23px';
eye.style.marginRight = '10px';
eye.style.cursor = 'pointer';
eye.addEventListener('click', function () {