From 4ce05ceee1aaeefd424ae9c82c6f6c058c58a8f3 Mon Sep 17 00:00:00 2001 From: Paul Sladen Date: Wed, 11 Sep 2013 01:20:26 +0100 Subject: [PATCH 1/2] Tighten White-space usage for Nomination "View details" with float:right --- app/assets/stylesheets/common.css.scss | 3 +++ app/helpers/geocoder_helper.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 2adabb5e11..aac527628e 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1014,7 +1014,10 @@ a.donate { .search_details { display: block; + float: right; text-align: right; + margin-top: 0.2em; + margin-left: 0.5em; } } diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index c74cba28e3..bfb71f80f4 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -19,7 +19,7 @@ def result_to_html(result) html << result[:suffix] if result[:suffix] if result[:type] and result[:id] - html << content_tag(:small, :class => ["deemphasize", "search_details"]) do + html << content_tag(:small, :class => ["deemphasize", "search_details", "clearfix"]) do link_to(t("browse.#{result[:type]}_history.view_details"), :controller => :browse, :action => result[:type], :id => result[:id]) end end From 02bbdbd265922035b7ac61dfbb277502af3d3483 Mon Sep 17 00:00:00 2001 From: Paul Sladen Date: Wed, 11 Sep 2013 21:44:55 +0100 Subject: [PATCH 2/2] Move `class="clearfix"` to parent

--- app/helpers/geocoder_helper.rb | 2 +- app/views/geocoder/results.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index bfb71f80f4..c74cba28e3 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -19,7 +19,7 @@ def result_to_html(result) html << result[:suffix] if result[:suffix] if result[:type] and result[:id] - html << content_tag(:small, :class => ["deemphasize", "search_details", "clearfix"]) do + html << content_tag(:small, :class => ["deemphasize", "search_details"]) do link_to(t("browse.#{result[:type]}_history.view_details"), :controller => :browse, :action => result[:type], :id => result[:id]) end end diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb index f98f2abc9e..3c471076cf 100644 --- a/app/views/geocoder/results.html.erb +++ b/app/views/geocoder/results.html.erb @@ -3,7 +3,7 @@ <% else %>

<% if @more_params %>