From d492628f3eb4f540438f9aab8b3c02e12b87d243 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 18 Jul 2013 10:20:48 -0700 Subject: [PATCH] Fix rendering of note comments (#333) --- app/assets/stylesheets/common.css.scss | 3 ++- app/views/browse/_changeset_details.html.erb | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 80cb000c5..0ab8069e9 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -964,7 +964,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; } h4, p { margin-bottom: $lineheight/4; } - p, ul, .bbox, .geo { + ul, .bbox, .geo { display: inline-block; vertical-align: top; max-width: 65%; @@ -974,6 +974,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; } margin-bottom: 0; } h4 { + float: left; width: 33.3333%; display: inline-block; vertical-align: top; diff --git a/app/views/browse/_changeset_details.html.erb b/app/views/browse/_changeset_details.html.erb index 47e38973d..7a0deac50 100644 --- a/app/views/browse/_changeset_details.html.erb +++ b/app/views/browse/_changeset_details.html.erb @@ -37,7 +37,7 @@ <% unless @nodes.empty? %> -
+

<%= t 'browse.changeset_details.has_nodes', :count => @node_pages.item_count %>

    <% @nodes.each do |node| %> @@ -49,7 +49,7 @@ <% end %> <% unless @ways.empty? %> -
    +

    <%= t 'browse.changeset_details.has_ways', :count => @way_pages.item_count %>

      <% @ways.each do |way| %> @@ -64,7 +64,7 @@ <% end %> <% unless @relations.empty? %> -
      +

      <%= t 'browse.changeset_details.has_relations', :count => @relation_pages.item_count %>

        <% @relations.each do |relation| %> -- 2.43.2