From: Tom Hughes Date: Thu, 22 Apr 2010 22:05:20 +0000 (+0100) Subject: Improve layout of data browser pages X-Git-Tag: live~6366^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/54bed8e9c0d97f18abee13f8e424ac981c5826d2 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. --- 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 %>