Browse Source

mobile fix

Gregg Tavares 6 years ago
parent
commit
3b0f6eb5c9

+ 6 - 1
threejs/3dlut-base-cube-maker.html

@@ -6,9 +6,14 @@
 <style>
 canvas {
   min-width: 512px;
-  min-height: 32px;
   image-rendering: pixelated;
 }
+@media (max-width: 530px) {
+  canvas {
+    min-width: 0px;
+    width: calc(100vw - 20px);
+  }
+}
 </style>
 </head>
 <body>

+ 6 - 0
threejs/threejs-postprocessing-adobe-lut-to-png-converter.html

@@ -15,6 +15,12 @@
       min-width: 512px;
       image-rendering: pixelated;
     }
+    @media (max-width: 530px) {
+      canvas {
+        min-width: 0px;
+        width: calc(100vw - 20px);
+      }
+    }
   </style>
   </head>
   <body>