pinokiod 1.2.60 → 1.2.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.2.60",
3
+ "version": "1.2.62",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -882,6 +882,9 @@ body.dark .line.selected {
882
882
  /*
883
883
  border-left: 6px solid white;
884
884
  */
885
+ background: rgba(80, 100, 70, 0.1);
886
+ border-top: 1px solid rgba(80, 100, 70, 0.1);
887
+ border-bottom: 1px solid rgba(80, 100, 70, 0.1);
885
888
  }
886
889
  /*
887
890
  body.dark .line:hover {
@@ -895,7 +898,9 @@ body.dark .line:hover {
895
898
  /*
896
899
  border-left: 6px solid black;
897
900
  */
898
- background: rgba(0,200,0,0.04);
901
+ background: rgba(70, 200, 250, 0.1);
902
+ border-top: 1px solid rgba(70, 200, 250, 0.3);
903
+ border-bottom: 1px solid rgba(70, 200, 250, 0.3);
899
904
  }
900
905
  .line {
901
906
  text-decoration: none;
@@ -374,7 +374,7 @@ const search = (items, value) => {
374
374
  //})
375
375
 
376
376
 
377
- let selectedIndex = 0
377
+ let selectedIndex = -1
378
378
  let selectedBtnIndex = 0
379
379
  let filteredCount = list.length
380
380
  let filteredBtnsCount = 0
@@ -386,8 +386,6 @@ const renderSearch = () => {
386
386
  result = list.map((i, index) => {
387
387
  return { item: i }
388
388
  })
389
- // selectedIndex = 0
390
- // selectedBtnIndex = 0
391
389
  } else {
392
390
  result = search(list, target.value)
393
391
  }
@@ -398,7 +396,6 @@ const renderSearch = () => {
398
396
  }
399
397
 
400
398
  filteredCount = result.length
401
- console.log("selectedIndex", selectedIndex)
402
399
  for(let i=0; i<result.length; i++) {
403
400
  let selector = result[i]
404
401
  //let el = document.querySelector(".line[data-name='" + selector.item.name + "']")