From ba336c598f3d55706b59f39975b6abc52c1995ec Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Fri, 5 Jun 2026 16:23:42 +0200 Subject: [PATCH] Applied patch by @Blackstareye from merge request !30 Now we have an eye button for toggling the password to clear text --- index.php | 35 +++++++++++++++++++++++++----- media/dark-courgette/style.css.php | 22 +++++++++++++++++++ 2 files changed, 52 insertions(+), 5 deletions(-) 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%; +} -- 2.43.0