Browse Source

expo: fixed audio player width for 1280 w screen

Bachir Soussi Chiadmi 4 years ago
parent
commit
7e4794aec1

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/scripts/main.min.js


File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/styles/app.min.css


+ 3 - 2
web/themes/custom/edlptheme/assets/scripts/main.js

@@ -1974,11 +1974,12 @@
     function checkExpoPlayerPositionning(e){
       console.log('checkExpoPlayerPositionning', e.node);
 
+      // optimized for 1280px width screen
       switch(true){
-        case e.node.x > window.innerWidth-800 && e.node.y < 200:
+        case e.node.x > window.innerWidth-610 && e.node.y < 200:
           _audioPlayer.$container.attr('pos', 'bottom-left');
           break;
-        case e.node.x > window.innerWidth-800:
+        case e.node.x > window.innerWidth-610:
           _audioPlayer.$container.attr('pos', 'top-left');
           break;
         case e.node.y < 200:

+ 2 - 1
web/themes/custom/edlptheme/assets/styles/app.scss

@@ -1154,7 +1154,8 @@ main[role="main"]{
   body.domain-expo-encyclopediedelaparole-org &{
     position: absolute;
     box-sizing: content-box;
-    width:550px; height:100px;
+    // optimized for 1280px width screen
+    width:550px; min-width:550px; max-width:550px; height:100px;
     left: 50vw; top:50vh;
     transform: translate(-50%, -50%);
     background-color: rgba(255,255,255, 0.8);

Some files were not shown because too many files changed in this diff