From 54bed8e9c0d97f18abee13f8e424ac981c5826d2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 22 Apr 2010 23:05:20 +0100 Subject: [PATCH] Improve layout of data browser pages Use float to position the navigation controls and map on the right rather than a table so that we get more consistent positioning and avoid forcing the map of the right hand side of the viewport. --- app/views/browse/_map.html.erb | 28 +++++++++---------- app/views/browse/_navigation.html.erb | 3 +- app/views/browse/changeset.html.erb | 30 ++++++-------------- app/views/browse/node.html.erb | 30 ++++++-------------- app/views/browse/node_history.html.erb | 21 +++++--------- app/views/browse/relation.html.erb | 26 +++++------------- app/views/browse/relation_history.html.erb | 21 +++++--------- app/views/browse/way.html.erb | 32 +++++++--------------- app/views/browse/way_history.html.erb | 21 +++++--------- public/stylesheets/common.css | 22 +++++++++++++++ 10 files changed, 93 insertions(+), 141 deletions(-) diff --git a/app/views/browse/_map.html.erb b/app/views/browse/_map.html.erb index 5bb83b6bf..f41deff95 100644 --- a/app/views/browse/_map.html.erb +++ b/app/views/browse/_map.html.erb @@ -1,22 +1,20 @@ <%= javascript_include_tag '/openlayers/OpenLayers.js' %> <%= javascript_include_tag '/openlayers/OpenStreetMap.js' %> <%= javascript_include_tag 'map.js' %> - -
- <% if map.instance_of? Changeset or map.visible %> -
-
- <%= t 'browse.map.loading' %> - - <% unless map.instance_of? Changeset %> -
- - <% end %> - <% else %> - <%= t 'browse.map.deleted' %> - <% end %> +
+ <% if map.instance_of? Changeset or map.visible %> +
- + <%= t 'browse.map.loading' %> + + <% unless map.instance_of? Changeset %> +
+ + <% end %> + <% else %> + <%= t 'browse.map.deleted' %> + <% end %> +
<% if map.instance_of? Changeset or map.visible %>