Jelajahi Sumber

HUE-5960 [importer] The fixed top bar should adapt to responsive

Enrico Berti 8 tahun lalu
induk
melakukan
14cdb3e

File diff ditekan karena terlalu besar
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


+ 8 - 0
desktop/core/src/desktop/static/desktop/less/hue.less

@@ -996,3 +996,11 @@ a:visited {
   background-color: #338BB8!important;
   background-color: #338BB8!important;
 }
 }
 
 
+#importerComponents {
+  .step-indicator-fixed {
+    position: initial!important;
+  }
+  .vertical-spacer {
+    height: 0!important;
+  }
+}

+ 2 - 2
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1766,7 +1766,6 @@ ${ assist.assistPanel() }
       document.styleSheets[0].addRule('.step-indicator li:first-child:before','left: ' + ($contentPanel.find('.step-indicator li:first-child .caption').width()/2) + 'px');
       document.styleSheets[0].addRule('.step-indicator li:first-child:before','left: ' + ($contentPanel.find('.step-indicator li:first-child .caption').width()/2) + 'px');
       document.styleSheets[0].addRule('.step-indicator li:last-child:before','max-width: ' + ($contentPanel.find('.step-indicator li:last-child .caption').width()) + 'px');
       document.styleSheets[0].addRule('.step-indicator li:last-child:before','max-width: ' + ($contentPanel.find('.step-indicator li:last-child .caption').width()) + 'px');
       document.styleSheets[0].addRule('.step-indicator li:last-child:before','right: ' + ($contentPanel.find('.step-indicator li:last-child .caption').width()/2) + 'px');
       document.styleSheets[0].addRule('.step-indicator li:last-child:before','right: ' + ($contentPanel.find('.step-indicator li:last-child .caption').width()/2) + 'px');
-      //document.styleSheets[0].addRule('.step-indicator li::before','max-width: ' + (($contentPanel.width()/2) + ($contentPanel.find('.step-indicator .step').width()/2)) + 'px');
     }
     }
 
 
     $(document).ready(function () {
     $(document).ready(function () {
@@ -1788,7 +1787,8 @@ ${ assist.assistPanel() }
 
 
 
 
       huePubSub.subscribe('split.panel.resized', resizeElements);
       huePubSub.subscribe('split.panel.resized', resizeElements);
-      resizeElements();
+
+      hueUtils.waitForRendered('.step-indicator li:first-child .caption', function(el){ return el.width() < $('#importerComponents').find('.content-panel-inner').width()/2 }, resizeElements);
 
 
       $(window).on('resize', resizeElements);
       $(window).on('resize', resizeElements);
 
 

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini