Przeglądaj źródła

HUE-8254 [dashboard] Add helper arrow to the right assist

Enrico Berti 7 lat temu
rodzic
commit
5b85e4ec5a

+ 3 - 2
desktop/core/src/desktop/templates/common_dashboard.mako

@@ -118,8 +118,9 @@
 
   <!-- ko if: $root.isGridster -->
   <div class="initial-hint empty-dashboard-plus" data-bind="fadeVisible: columns().length > 0 && showPlusButtonHint() && !$root.isQueryBuilder()">
-    <div style="float:left; padding-top: 90px; margin-right: 20px; text-align: center; width: 260px">${_('Drag the plus button into your dashboard')}</div>
-    <img src="${ static('desktop/art/hint_arrow.svg') }" alt="${ _('Hint arrow') }" />
+    <div style="float:left; padding-top: 120px; margin-right: -30px; text-align: center; width: 280px">${_('Drag the top plus button or any field from the right assistant into your dashboard')}</div>
+    <img src="${ static('desktop/art/hint_arrow.svg') }" alt="${ _('Hint arrow') }" style="width: 90px" />
+    <img src="${ static('desktop/art/hint_arrow.svg') }" alt="${ _('Hint arrow') }" style="width: 90px; margin-left: 80px; position: absolute; transform: rotate(33deg);" />
   </div>
   <!-- /ko -->
 

Plik diff jest za duży
+ 0 - 0
desktop/libs/dashboard/src/dashboard/static/dashboard/css/common_dashboard.css


+ 1 - 1
desktop/libs/dashboard/src/dashboard/static/dashboard/less/common_dashboard.less

@@ -134,7 +134,7 @@
   }
 
   .empty-dashboard-plus {
-    right: 125px;
+    right: 130px;
   }
 
   .emptyRow {

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

@@ -4287,6 +4287,7 @@ $(document).ready(function () {
 
   huePubSub.subscribe('draggable.text.meta', function (options) {
     if (searchViewModel.isGridster()) {
+      searchViewModel.showPlusButtonHint(false);
       isDraggingOrResizingWidgets = true;
       setPreviousWidgetSizes();
       skipRestoreOnStop = false;

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików