Преглед изворни кода

HUE-7 [importer] Fix wizard header line overflow

Enrico Berti пре 8 година
родитељ
комит
53e232f
1 измењених фајлова са 9 додато и 6 уклоњено
  1. 9 6
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 9 - 6
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1082,7 +1082,7 @@ ${ assist.assistPanel() }
           vm.createWizard.guessFormat();
           vm.createWizard.destination.nonDefaultLocation(val);
         }
-      })
+      });
 
       // Table
       self.table = ko.observable('');
@@ -1645,13 +1645,16 @@ ${ assist.assistPanel() }
 
       var $contentPanel = $('#importerComponents').find('.content-panel');
 
-      huePubSub.subscribe('split.panel.resized', function () {
+      function resizeElements () {
         $('.form-actions').width($contentPanel.width() - 50);
-        $('.step-indicator-fixed').width($contentPanel.width() - 50)
-      });
+        $('.step-indicator-fixed').width($contentPanel.width());
+        document.styleSheets[0].addRule('.step-indicator li::before','max-width: ' + ($contentPanel.width()/2) + 'px');
+      }
+
+      huePubSub.subscribe('split.panel.resized', resizeElements);
+      resizeElements();
 
-      $('.form-actions').width($contentPanel.width() - 50);
-      $('.step-indicator-fixed').width($contentPanel.width() - 50)
+      $(window).on('resize', resizeElements);
 
       $('.content-panel').droppable({
         accept: ".draggableText",