From 5244b2cd0b4248dff6689003e40d7f8df9c03b8d Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 7 Sep 2023 17:20:43 +0300 Subject: [PATCH] Fix alignment in profile and diary location forms --- app/views/diary_entries/_form.html.erb | 4 ++-- app/views/profiles/edit.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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" %>
-- 2.39.5