diff --git a/app/frontend/stylesheets/application.tailwind.css b/app/frontend/stylesheets/application.tailwind.css index 98775a72c..5b22ceaac 100644 --- a/app/frontend/stylesheets/application.tailwind.css +++ b/app/frontend/stylesheets/application.tailwind.css @@ -134,10 +134,16 @@ position: relative; } +.password-field { + -webkit-appearance: none; + appearance: none; +} + .toggle-password { position: absolute; right: 12px; - top: 36px; /* aligns with input vertically */ + top: 50%; + transform: translateY(-50%); background: none; border: none; padding: 0; @@ -151,7 +157,10 @@ /* Hide Chrome / Edge / Safari (macOS + iOS) password reveal icon */ input[type="password"]::-webkit-textfield-decoration-container { - display: none; + visibility: hidden; + pointer-events: none; + width: 0; + height: 0; } input[type="password"]::-webkit-credentials-auto-fill-button { @@ -160,6 +169,12 @@ input[type="password"]::-webkit-credentials-auto-fill-button { pointer-events: none; } +<<<<<<< HEAD +/* Safari fix: Ensure password field has proper height */ +.password-field { + height: 2.5rem; /* Matches Tailwind's default input height with p-2 */ +} + /* Truncated comment textareas - compact at rest, expand on hover/focus */ textarea.comment-truncated { overflow: hidden; diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index da49bdfd1..1073a31e8 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -12,50 +12,42 @@ <%= f.hidden_field :reset_password_token %> -
Password must be at least 5 characters long