From d901d444ec1880ef070f486d26cbc3a3ab744c8b Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Mon, 26 May 2025 16:21:42 +0200 Subject: [PATCH] Store search icons separately --- app/assets/images/search/bicycle.svg | 3 ++ app/assets/images/search/car.svg | 3 ++ app/assets/images/search/directions.svg | 4 +++ app/assets/images/search/foot.svg | 3 ++ app/assets/images/search/magnifying_glass.svg | 8 +++++ .../images/search/reverse_directions.svg | 4 +++ app/views/layouts/_search.html.erb | 31 ++++--------------- 7 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 app/assets/images/search/bicycle.svg create mode 100644 app/assets/images/search/car.svg create mode 100644 app/assets/images/search/directions.svg create mode 100644 app/assets/images/search/foot.svg create mode 100644 app/assets/images/search/magnifying_glass.svg create mode 100644 app/assets/images/search/reverse_directions.svg diff --git a/app/assets/images/search/bicycle.svg b/app/assets/images/search/bicycle.svg new file mode 100644 index 000000000..bb7a4ca02 --- /dev/null +++ b/app/assets/images/search/bicycle.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/images/search/car.svg b/app/assets/images/search/car.svg new file mode 100644 index 000000000..864e08541 --- /dev/null +++ b/app/assets/images/search/car.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/images/search/directions.svg b/app/assets/images/search/directions.svg new file mode 100644 index 000000000..484ef4b6e --- /dev/null +++ b/app/assets/images/search/directions.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/assets/images/search/foot.svg b/app/assets/images/search/foot.svg new file mode 100644 index 000000000..959f6c65d --- /dev/null +++ b/app/assets/images/search/foot.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/images/search/magnifying_glass.svg b/app/assets/images/search/magnifying_glass.svg new file mode 100644 index 000000000..2673792ad --- /dev/null +++ b/app/assets/images/search/magnifying_glass.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/app/assets/images/search/reverse_directions.svg b/app/assets/images/search/reverse_directions.svg new file mode 100644 index 000000000..99ce94762 --- /dev/null +++ b/app/assets/images/search/reverse_directions.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index f3514959d..9c32e1701 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -13,21 +13,11 @@ <%= button_tag t("site.search.where_am_i"), :type => "button", :class => "describe_location position-absolute end-0 m-1 btn btn-outline-primary border-0 p-1 text-primary link-body-emphasis link-opacity-100-hover", :title => t("site.search.where_am_i_title") %> <%= button_tag :class => "btn btn-primary p-1", :title => t("site.search.submit_text") do %> - - - - - - - - + <%= inline_svg_tag "search/magnifying_glass.svg" %> <% end %> <%= link_to directions_path, :class => "btn btn-primary p-1 switch_link", :title => t("site.search.get_directions_title") do %> - - - - + <%= inline_svg_tag "search/directions.svg", :class => "align-bottom" %> <% end %> @@ -38,21 +28,15 @@