Эх сурвалжийг харах

HUE-6415 [search] Field analysis popup is opening with offset and not styled properly

Enrico Berti 8 жил өмнө
parent
commit
fcd404c

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 0 - 37
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -96,13 +96,6 @@ div.locked {
   text-decoration: none;
 }
 
-.bar-label {
-  text-align: center;
-  color: #FFFFFF;
-  font-size: 12px;
-  text-shadow: -1px 0 1px #333, 0 1px 1px #333, 1px 0 1px #333, 0 -1px 1px #333;
-}
-
 .empty-wrapper {
   margin-top: 50px;
   color: #BBB;
@@ -287,13 +280,6 @@ a#advanced-btn:hover {
   float: right;
 }
 
-.progress {
-  height: 20px;
-  margin-bottom: 0;
-  padding: 0;
-  border: none;
-}
-
 .nav-list > li.white {
   margin-left: -15px;
   margin-right: -15px;
@@ -669,29 +655,6 @@ div.navigator > ul > li.oozie > ul.dropdown-menu {
   overflow-y: visible;
 }
 
-.mega-popover {
-  max-width: 1200px;
-}
-
-.mega-popover .content {
-  height: 300px;
-  overflow-y: scroll;
-}
-
-.mega-popover .popover-content {
-  min-height: 360px;
-  min-width: 440px;
-  max-width: 660px;
-}
-
-.mega-popover input[type="text"] {
-  border-radius: 20px;
-  margin: 0;
-  min-height: 26px;
-  padding-left: 12px;
-  width: 130px;
-}
-
 .hiveAutocompleteItem {
   white-space: nowrap;
 }

+ 20 - 0
desktop/core/src/desktop/static/desktop/less/hue-cross-version.less

@@ -381,3 +381,23 @@ ul.errorlist {
     font-style: italic;
   }
 }
+
+.mega-popover {
+  max-width: 1200px;
+  .content {
+    height: 300px;
+    overflow-y: scroll;
+  }
+  .popover-content {
+    min-height: 360px;
+    min-width: 440px;
+    max-width: 660px;
+  }
+  input[type="text"] {
+    border-radius: 20px;
+    margin: 0;
+    min-height: 26px;
+    padding-left: 12px;
+    width: 130px;
+  }
+}

+ 11 - 0
desktop/core/src/desktop/static/desktop/less/hue-cui-overrides.less

@@ -93,7 +93,18 @@ table.datatables {
 
 .progress {
   border-radius: 0;
+  height: 20px;
+  margin-bottom: 0;
+  padding: 0;
+  border: none;
   .bar {
     .hue-no-box-shadow;
   }
+  .bar-label {
+    text-align: center;
+    color: #FFFFFF;
+    font-size: 12px;
+    line-height: 20px;
+    text-shadow: -1px 0 1px @cui-gray-800, 0 1px 1px @cui-gray-800, 1px 0 1px @cui-gray-800, 0 -1px 1px @cui-gray-800;
+  }
 }

+ 4 - 0
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -3620,6 +3620,10 @@ $(document).ready(function () {
       originalEvent.pageX = originalEvent.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
       originalEvent.pageY = originalEvent.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
     }
+    if ($('#searchComponents').offset().left > 0) {
+      originalEvent.pageX = originalEvent.pageX - $('#searchComponents').offset().left;
+      originalEvent.pageY = originalEvent.pageY - $('#searchComponents').offset().top;
+    }
     $("#fieldAnalysis").show().css({
       top: Math.max(0, originalEvent.pageY - $("#fieldAnalysis").outerHeight() / 2),
       left: originalEvent.pageX

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно