diff index.html @ 16:c582629d15e7 default tip

Fix display on mobile
author nanaya <me@nanaya.net>
date Thu, 12 Sep 2024 00:46:50 +0900
parents d6a6c128cd5a
children
line wrap: on
line diff
--- a/index.html	Wed Sep 11 21:28:26 2024 +0900
+++ b/index.html	Thu Sep 12 00:46:50 2024 +0900
@@ -52,7 +52,7 @@
         }
 
         .outputbox > canvas {
-            display: none;
+            max-width: 100%;
         }
 
         .outputbox > img {
@@ -96,9 +96,9 @@
             var text = inputDom.value
 
             if (text === "") {
-                outputDom.style.display = 'none';
+                outputDom.style.opacity = 0;
             } else {
-                outputDom.style.display = 'block';
+                outputDom.style.opacity = '';
                 qr.makeCode(text)
             }
         }