Parcourir la source

Update responsiveness for currency part of landing page.

Lee Morgan il y a 3 ans
Parent
commit
360f1c7ab4
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 1 0
      views/main/index.css
  2. 3 2
      views/main/index.html

+ 1 - 0
views/main/index.css

@@ -354,6 +354,7 @@ body{
 
     #main{
         height: initial;
+        min-height: 100vh;
     }
 
     #menu{

+ 3 - 2
views/main/index.html

@@ -466,8 +466,9 @@
             }
 
             let imageSize = (image)=>{
-                let width = `${image.clientWidth * 0.35}px`;
-                image.style.height = `${image.clientHeight * 0.35}px`;
+                let multiplier = screen.width > 1200 ? 0.35 : 0.15;
+                let width = `${image.clientWidth * multiplier}px`;
+                image.style.height = `${image.clientHeight * multiplier}px`;
                 image.style.width = width;
             }