Skip to content

Commit

Permalink
Merge pull request #3714 from Growstuff/trade-seeds
Browse files Browse the repository at this point in the history
Fix button display on small screens
  • Loading branch information
CloCkWeRX committed Apr 9, 2024
2 parents f9ce304 + e334fc4 commit 3347519
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/seeds/_modal.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
%hr/
%p Yes, I would be willing trade these from #{current_member.location}
.btn-group{"aria-label" => "trade to", role: "group"}
- Seed::TRADABLE_TO_VALUES.each do |t|
.btn-group.d-grid.flex-column{"aria-label" => "trade to", role: "group"}
- Seed::TRADABLE_TO_VALUES.reverse.each do |t|
- unless t == 'nowhere'
= button_to seeds_path(seed: {crop_id: seed.crop_id, tradable_to: t}), method: :post, class: 'btn' do
%h3= t
= button_to seeds_path(seed: {crop_id: seed.crop_id, tradable_to: t}), method: :post, class: 'btn col-12' do
= t
%hr/
%p
Expand Down

0 comments on commit 3347519

Please sign in to comment.