]> git.openstreetmap.org Git - rails.git/commitdiff
Replace png directions icon with inline svg
authorAnton Khorev <tony29@yandex.ru>
Mon, 27 May 2024 01:20:39 +0000 (04:20 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 27 May 2024 01:34:06 +0000 (04:34 +0300)
app/assets/images/directions.png [deleted file]
app/views/layouts/_search.html.erb

diff --git a/app/assets/images/directions.png b/app/assets/images/directions.png
deleted file mode 100644 (file)
index 197244f..0000000
Binary files a/app/assets/images/directions.png and /dev/null differ
index 41529e0c2d92293b58bcd9c16d33382183b54d4b..da9aa1c9e4ab89b4f6d3bc31cd54f03783925513 100644 (file)
         </div>
       </div>
       <div class="col-auto">
-        <%= link_to image_tag("directions.png", :width => "20", :height => "20", :class => "align-bottom"), directions_path, :class => "btn btn-sm btn-primary switch_link", :title => t("site.search.get_directions_title") %>
+        <%= link_to directions_path, :class => "btn btn-sm btn-primary px-1 switch_link", :title => t("site.search.get_directions_title") do %>
+          <svg width="28" height="20" class="align-bottom">
+            <path d="M11.5 9.5 v-3h3v-1l-5 -5l-5 5v1h3v6" fill="none" stroke="#fff8" />
+            <path d="M7.5 19.5h4v-5a1 1 0 0 1 1 -1h5v3h1l5 -5l-5 -5h-1v3h-6a4 4 0 0 0 -4 4z" fill="#fff8" stroke="#fff" />
+          </svg>
+        <% end %>
       </div>
     </div>
   </form>