From: Tom Hughes Date: Sun, 3 Apr 2011 17:02:27 +0000 (+0100) Subject: Trigger mobile mode at 640px instead of 480px for iPhone 4 support X-Git-Tag: live~6246^2~63 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/8f101a375972f60640710ce18a91283b4b972fa7?hp=a9e8f14e6d0166d689e942cd49d47208f4277c80 Trigger mobile mode at 640px instead of 480px for iPhone 4 support --- diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 517e02146..6c22a9475 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -7,8 +7,8 @@ <%= stylesheet_link_tag 'common' %> - <%= stylesheet_link_tag 'small', :media => "only screen and (max-width: 481px)" %> - <%= stylesheet_link_tag 'large', :media => "screen and (min-width: 482px)" %> + <%= stylesheet_link_tag 'small', :media => "only screen and (max-width:641px)" %> + <%= stylesheet_link_tag 'large', :media => "screen and (min-width: 642px)" %> <%= stylesheet_link_tag 'print', :media => "print" %> <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %> <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>