From c9a114ee4ea451ff865cf48c82c11ca3cff0cb08 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:04:20 +0100 Subject: [PATCH] Replace routing mode icons --- app/assets/images/search/bicycle.svg | 3 --- app/assets/images/search/car.svg | 3 --- app/assets/images/search/foot.svg | 3 --- app/views/layouts/_search.html.erb | 6 +++--- 4 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 app/assets/images/search/bicycle.svg delete mode 100644 app/assets/images/search/car.svg delete mode 100644 app/assets/images/search/foot.svg diff --git a/app/assets/images/search/bicycle.svg b/app/assets/images/search/bicycle.svg deleted file mode 100644 index bb7a4ca02..000000000 --- a/app/assets/images/search/bicycle.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/assets/images/search/car.svg b/app/assets/images/search/car.svg deleted file mode 100644 index 864e08541..000000000 --- a/app/assets/images/search/car.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/assets/images/search/foot.svg b/app/assets/images/search/foot.svg deleted file mode 100644 index 959f6c65d..000000000 --- a/app/assets/images/search/foot.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index aaac7546d..43f6a6356 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -26,11 +26,11 @@
- <% %w[car bicycle foot].each do |mode| %> + <% { "car" => "car-front-fill", "bicycle" => "bicycle", "foot" => "person-walking" }.each do |mode, icon| %> <%= radio_button_tag "modes", mode, false, { :class => "btn-check", :autocomplete => "off", :disabled => true } %> <%= label_tag "modes_#{mode}", - inline_svg_tag("search/#{mode}.svg", :class => "d-block"), - :class => "btn btn-outline-secondary px-2", + tag.i(:class => "bi bi-#{icon} fs-6", :aria => { :hidden => "true" }), + :class => "btn btn-outline-secondary px-2 py-1", :title => t("site.search.modes.#{mode}") %> <% end %>
-- 2.39.5