Bladeren bron

HUE-6748 [editor] Select and copy the query from the query history

Enrico Berti 8 jaren geleden
bovenliggende
commit
775f8835ef

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


+ 16 - 14
desktop/libs/notebook/src/notebook/static/notebook/less/notebook.less

@@ -939,20 +939,22 @@
     padding: 4px 0;
   }
 
-  .ace-highlight .ace-hue {
-    background-color: transparent !important;
-  }
-
-  .ace-highlight .ace_invalid {
-    display: none;
-  }
-
-  .ace-highlight .ace_line {
-    white-space: normal;
-  }
-
-  .ace-highlight .ace-highlight-pre {
-    white-space: pre !important;
+  .ace-highlight {
+    .ace_layer {
+      pointer-events: all;
+    }
+    .ace-hue {
+      background-color: transparent !important;
+    }
+    .ace_invalid {
+      display: none;
+    }
+    .ace_line {
+      white-space: normal;
+    }
+    .ace-highlight-pre {
+      white-space: pre !important;
+    }
   }
 
   .history-status {

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -733,7 +733,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
                     <!-- /ko -->
                   </td>
                   <td style="width: 25px" class="muted" data-bind="ellipsis: {data: name(), length: 30}, style: {'border-top-width': $index() == 0 ? '0' : ''}"></td>
-                  <td data-bind="style: {'border-top-width': $index() == 0 ? '0' : ''}"><div data-bind="highlight: { value: query, dialect: $parent.type }"></div></td>
+                  <td data-bind="style: {'border-top-width': $index() == 0 ? '0' : ''}, click: function(){ if (window.getSelection().toString() === '' && uuid() != $root.selectedNotebook().uuid()) { $root.openNotebook(uuid()) }  }, clickBubble: false"><div data-bind="highlight: { value: query, dialect: $parent.type }"></div></td>
                 </tr>
               </tbody>
             </table>

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