File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 181181  height :  180px  ;
182182  width :  720px  ;
183183  margin-bottom :  10px  ;
184+   display :  flex;
185+   justify-content :  center;
184186}
185187
186188.mainImageBox .dragDrop  {
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ module.exports = PublicLab.MainImageModule = PublicLab.Module.extend({
2525        _module . image . onload  =  function ( )  { 
2626          var  heightDropdown  =  this . height ; 
2727          var  widthDropdown  =  this . width ; 
28-           if  ( this . width  >  340 )  { 
29-             var  aspectRatio  =  this . width  /  340 ; 
30-             widthDropdown  =  340 ; 
31-             heightDropdown  =  this . height   /   aspectRatio ; 
28+           if  ( this . height  >  180 )  { 
29+             var  aspectRatio  =  this . height  /  180 ; 
30+             widthDropdown  =  this . width   /   aspectRatio ;   ; 
31+             heightDropdown  =  180 ; 
3232          } 
3333          _module . dropEl . css ( 'height' ,  heightDropdown ) ; 
3434          _module . dropEl . css ( 'width' ,  widthDropdown ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments