Merge pull request #478 from OWASP/fix/dropdown-display-and-readme-cleanup

Fix messages dropdown display and remove broken badges
This commit is contained in:
Ken Johnson
2025-12-09 17:01:36 +00:00
committed by GitHub
2 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -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.
+22 -1
View File
@@ -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" }) %>
<small class="text-muted">Select message recipient</small>
</div>
@@ -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);
}
</style>