From: Anton Khorev Date: Thu, 7 Sep 2023 14:20:43 +0000 (+0300) Subject: Fix alignment in profile and diary location forms X-Git-Tag: live~1140^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5244b2cd0b4248dff6689003e40d7f8df9c03b8d?ds=sidebyside Fix alignment in profile and diary location forms --- diff --git a/app/views/diary_entries/_form.html.erb b/app/views/diary_entries/_form.html.erb index bfb1c1823..0b38e3ea6 100644 --- a/app/views/diary_entries/_form.html.erb +++ b/app/views/diary_entries/_form.html.erb @@ -8,8 +8,8 @@ <%= tag.div "", :id => "map", :class => "border border-grey rounded mb-3", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %>
- <%= f.text_field :latitude, :wrapper_class => "col-sm-4", :id => "latitude" %> - <%= f.text_field :longitude, :wrapper_class => "col-sm-4", :id => "longitude" %> + <%= f.text_field :latitude, :wrapper_class => "col-sm-4 d-flex flex-column", :class => "mt-auto", :id => "latitude" %> + <%= f.text_field :longitude, :wrapper_class => "col-sm-4 d-flex flex-column", :class => "mt-auto", :id => "longitude" %>
diff --git a/app/views/profiles/edit.html.erb b/app/views/profiles/edit.html.erb index bf53832c8..b207e72e2 100644 --- a/app/views/profiles/edit.html.erb +++ b/app/views/profiles/edit.html.erb @@ -44,8 +44,8 @@ <%= t ".home location" -%>

<%= t ".no home location" %>

- <%= f.text_field :home_lat, :wrapper_class => "col-sm-4", :id => "home_lat" %> - <%= f.text_field :home_lon, :wrapper_class => "col-sm-4", :id => "home_lon" %> + <%= f.text_field :home_lat, :wrapper_class => "col-sm-4 d-flex flex-column", :class => "mt-auto", :id => "home_lat" %> + <%= f.text_field :home_lon, :wrapper_class => "col-sm-4 d-flex flex-column", :class => "mt-auto", :id => "home_lon" %>