From: Anton Khorev Date: Mon, 3 Jun 2024 09:26:57 +0000 (+0300) Subject: Use flex in routing form for vertical gaps X-Git-Tag: live~457^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/411f0ab6650da6d858e2876e1c45a9f3412e3daa?ds=inline;hp=--cc Use flex in routing form for vertical gaps --- 411f0ab6650da6d858e2876e1c45a9f3412e3daa diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index 00cf60b7a..8fe23826f 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -33,26 +33,28 @@
-
-
- <%= image_tag "marker-green.png", :class => "img-fluid", :data => { :type => "from" }, :draggable => "true" %> +
+
+
+ <%= image_tag "marker-green.png", :class => "img-fluid", :data => { :type => "from" }, :draggable => "true" %> +
+ <%= text_field_tag "route_from", params[:from], :placeholder => t("site.search.from"), :autocomplete => "on", :class => "form-control py-1 px-2", :dir => "auto" %>
- <%= text_field_tag "route_from", params[:from], :placeholder => t("site.search.from"), :autocomplete => "on", :class => "form-control py-1 px-2", :dir => "auto" %> -
-
-
- <%= image_tag "marker-red.png", :class => "img-fluid", :data => { :type => "to" }, :draggable => "true" %> +
+
+ <%= image_tag "marker-red.png", :class => "img-fluid", :data => { :type => "to" }, :draggable => "true" %> +
+ <%= text_field_tag "route_to", params[:to], :placeholder => t("site.search.to"), :autocomplete => "on", :class => "form-control py-1 px-2", :dir => "auto" %> +
+
+
+ + <%= submit_tag t("site.search.submit_text"), :class => "routing_go btn btn-primary py-1 px-2", :data => { :disable_with => false } %> +
+
+
+
- <%= text_field_tag "route_to", params[:to], :placeholder => t("site.search.to"), :autocomplete => "on", :class => "form-control py-1 px-2", :dir => "auto" %> -
-
-
- - <%= submit_tag t("site.search.submit_text"), :class => "routing_go btn btn-primary py-1 px-2", :data => { :disable_with => false } %> -
-
-
-