Kaynağa Gözat

small fixes

markellekelly 5 yıl önce
ebeveyn
işleme
8fa2b85f74

+ 2 - 9
packages/celltags/src/tool.ts

@@ -70,16 +70,9 @@ export class TagTool extends NotebookTools.Tool {
     if (tags === undefined) {
       tags = [];
     }
-    const toAdd: string[] = [];
     for (let i = 0; i < newTags.length; i++) {
-      if (newTags[i] !== '' && toAdd.indexOf(newTags[i]) < 0) {
-        toAdd.push(newTags[i]);
-      }
-    }
-    // todo: can this be combined into one for loop?
-    for (let j = 0; j < toAdd.length; j++) {
-      if (tags.indexOf(toAdd[j]) < 0) {
-        tags.push(toAdd[j]);
+      if (newTags[i] !== '' && tags.indexOf(newTags[i]) < 0) {
+        tags.push(newTags[i]);
       }
     }
     cell.model.metadata.set('tags', tags);

+ 1 - 1
packages/ui-components/style/icons/toolbar/check.svg

@@ -1,5 +1,5 @@
 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
-  <g class="jp-icon3" fill="rgba(255,0,0,0.5)"> 
+  <g class="jp-icon3" fill="#616161"> 
    <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
   </g>
 </svg>