From: Patrick Canterino Date: Fri, 5 Jun 2026 14:23:42 +0000 (+0200) Subject: Applied patch by @Blackstareye from merge request !30 X-Git-Tag: 4.7.2~7 X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/commitdiff_plain/ba336c598f3d55706b59f39975b6abc52c1995ec Applied patch by @Blackstareye from merge request !30 Now we have an eye button for toggling the password to clear text --- diff --git a/index.php b/index.php index 2b84013..82b3c8c 100644 --- a/index.php +++ b/index.php @@ -156,14 +156,15 @@ if ($cfg['download_password_requirement'] === 'generated') { echo ''; } else { echo ''; - echo ' '; + echo ' /> '; echo ''; }?> @@ -207,6 +208,20 @@ if ($cfg['maximal_upload_size'] >= 1024) { diff --git a/media/dark-courgette/style.css.php b/media/dark-courgette/style.css.php index 3657b87..3ba5e79 100644 --- a/media/dark-courgette/style.css.php +++ b/media/dark-courgette/style.css.php @@ -472,3 +472,25 @@ textarea[readonly="readonly"] + p + p a:focus { padding-top: 10px; padding-bottom: 10px; } + + + +#show_password { + flex: 1 1 auto; + position: absolute; + right: 0%; + background: none; + border: none; + cursor: pointer; + opacity: 30%; +} +#show_password:hover { + opacity: 100%; +} + +.passwordcolumn { + display: flex; + position: relative; + align-items: center; + width: 100%; +}