diff mgallery.php @ 231:2731d2d8400e

Set meta viewport tag and initial scale, and try to "fix" things for some mobile devices/browsers while probably breaking things for others. Also, setting the initial scale seems to break the Android Chrome "text size autoboost" prevention in the CSS ... sigh. :S Set the text-size-adjust values to 100% anyway.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 26 Mar 2018 17:06:12 +0300
parents 27e541d02be8
children e618280253ca
line wrap: on
line diff
--- a/mgallery.php	Mon Mar 26 17:03:48 2018 +0300
+++ b/mgallery.php	Mon Mar 26 17:06:12 2018 +0300
@@ -133,6 +133,9 @@
     "<html>\n".
     "<head>\n".
     "  <meta charset=\"".$pageCharset."\">\n".
+    // Setting the viewport makes things break especially with the
+    // text-size-adjust CSS settings... so we don't use it.
+    "  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n".
     "  <script type=\"text/javascript\" src=\"".mgMangleURI($pageJSFile)."\"></script>\n".
     "  <title>".strip_tags($pageTitle)."</title>\n".
     mgGetCSSLine($pageCSS, FALSE).