Przeglądaj źródła

Merge pull request #83 from sharelatex/pr-fix-full-height-safari

Fix page height on Safari when zoomed
Paulo Jorge Reis 9 lat temu
rodzic
commit
683c93c2f9

+ 2 - 1
services/web/public/stylesheets/core/scaffolding.less

@@ -21,6 +21,7 @@
 html {
 html {
   //font-size: 62.5%;
   //font-size: 62.5%;
   -webkit-tap-highlight-color: rgba(0,0,0,0);
   -webkit-tap-highlight-color: rgba(0,0,0,0);
+  height: 100%;
 }
 }
 
 
 body {
 body {
@@ -29,7 +30,7 @@ body {
   line-height: @line-height-base;
   line-height: @line-height-base;
   color: @text-color;
   color: @text-color;
   background-color: @body-bg;
   background-color: @body-bg;
-  min-height: 100vh;
+  min-height: 100%;
   position: relative;
   position: relative;
   padding-top: @header-height;
   padding-top: @header-height;
   padding-bottom: @footer-height;
   padding-bottom: @footer-height;