Browse Source

HUE-8212 [dashboard] Add drag cursor to the plus button

Enrico Berti 7 years ago
parent
commit
79b51603e8

File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue-embedded.css


File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 5 - 1
desktop/core/src/desktop/static/desktop/less/hue-helpers.less

@@ -144,10 +144,14 @@ pre, .like-pre {
   cursor: default !important;
 }
 
-.pointer {
+.pointer, .pointer-cursor {
   cursor: pointer !important;
 }
 
+.move-cursor {
+  cursor: move !important;
+}
+
 .section-h4-border {
   font-weight: bold;
   color: @cui-blue-700;

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

@@ -141,7 +141,7 @@ from dashboard.conf import USE_GRIDSTER, HAS_REPORT_ENABLED, HAS_WIDGET_FILTER,
     <div class="search-bar-operations">
       <!-- ko if: $root.isGridster() && !$root.isQueryBuilder() -->
       <div class="btn-group">
-        <a class="btn pointer draggable-plus-button" title="${ _('Click or drag to add a widget') }" rel="tooltip" data-placement="bottom" data-bind="draggable: {data: draggableBar(), options: getDraggableOptions({ data: draggableBar(), plusButton: true })}, visible: columns().length, click: function() { isToolbarVisible(!isToolbarVisible()) }, css: {'btn': true, 'btn-inverse': isToolbarVisible }">
+        <a class="btn draggable-plus-button move-cursor" title="${ _('Click or drag to add a widget') }" rel="tooltip" data-placement="bottom" data-bind="draggable: {data: draggableBar(), options: getDraggableOptions({ data: draggableBar(), plusButton: true })}, visible: columns().length, click: function() { isToolbarVisible(!isToolbarVisible()) }, css: {'btn': true, 'btn-inverse': isToolbarVisible }">
           <i class="fa fa-plus"></i>
         </a>
       </div>

Some files were not shown because too many files changed in this diff