]> git.openstreetmap.org Git - rails.git/commitdiff
Switch to bootstrap recommended viewport definition
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 2 Aug 2023 15:07:13 +0000 (16:07 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 2 Aug 2023 15:07:13 +0000 (16:07 +0100)
Original version was introduced in 6674873478c9fe221d2fd78f76cabc6d4b03c0aa
and has not been changed since.

Google's PageSpeed Insights tool also flagged this up as an accessibility
issue, since it previously prohibited users zooming into the site.

app/views/layouts/_head.html.erb

index 63cbe7082b5c5f78366530f4e6f2a916b371913f..0ee5bf9c0f5c56ae7a3f4bf70eaf166fe05cfda1 100644 (file)
@@ -1,6 +1,6 @@
 <%= tag.head :data => application_data do %>
   <meta http-equiv="X-UA-Compatible" content="IE=edge" />
-  <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
+  <meta name="viewport" content="width=device-width, initial-scale=1">
   <%= javascript_include_tag "es6" unless browser.es6? %>
   <%= javascript_include_tag "application" %>
   <%= javascript_include_tag "i18n/#{I18n.locale}" %>