diff --git a/README.md b/README.md index fdb1d12..30fbfeb 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# RailsGoat [![Build Status](https://api.travis-ci.org/OWASP/railsgoat.png?branch=master)](https://travis-ci.org/OWASP/railsgoat) +# RailsGoat RailsGoat is a vulnerable version of the Ruby on Rails Framework from versions 3 to 6. It includes vulnerabilities from the OWASP Top 10, as well as some "extras" that the initial project contributors felt worthwhile to share. This project is designed to educate both developers, as well as security professionals. diff --git a/app/views/messages/index.html.erb b/app/views/messages/index.html.erb index a239679..4baff6e 100644 --- a/app/views/messages/index.html.erb +++ b/app/views/messages/index.html.erb @@ -109,7 +109,7 @@ <%= f.select(:receiver_id, options_from_collection_for_select(User.all, :id, :full_name), { prompt: "Select a recipient..." }, - { class: "form-select form-select-lg" }) %> + { class: "form-control form-control-lg", id: "message_receiver_id" }) %> Select message recipient @@ -306,4 +306,25 @@ $("#submit_button").click(function(event) { justify-content: center; } } + + /* Fix dropdown height and padding to prevent text cutoff */ + #message_receiver_id { + min-height: 48px !important; + line-height: 1.5 !important; + padding: 0.5rem 0.75rem !important; + vertical-align: middle !important; + box-sizing: border-box !important; + } + + /* Ensure dropdown options have proper spacing too */ + #message_receiver_id option { + padding: 0.5rem 0.75rem !important; + line-height: 1.5 !important; + } + + /* Ensure dropdown has proper focus styling */ + #message_receiver_id:focus { + border-color: var(--rg-success); + box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1); + }