chrome-devtools-frontend 1.0.954572 → 1.0.954716

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.
@@ -1334,7 +1334,7 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
1334
1334
  }
1335
1335
 
1336
1336
  /** Keep it in sync with elementsTreeOutline.css **/
1337
- return 12 * (depth - 2) + (this.isExpandable() ? 1 : 12);
1337
+ return 12 * (depth - 2) + (this.isExpandable() && this.isCollapsible() ? 1 : 12);
1338
1338
  }
1339
1339
 
1340
1340
  updateDecorations(): void {
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .elements-disclosure li {
37
- /** Keep margin-left & padding-left in sync with ElementsTreeElements.updateDecorators **/
37
+ /** Keep margin-left & padding-left in sync with ElementsTreeElements.updateDecorations **/
38
38
  padding: 1px 0 0 14px;
39
39
  margin-left: -2px;
40
40
  word-break: normal;
@@ -44,8 +44,8 @@
44
44
  min-width: 200px;
45
45
  }
46
46
 
47
- .elements-disclosure li.parent {
48
- /** Keep it in sync with ElementsTreeElements.updateDecorators **/
47
+ .elements-disclosure li.parent:not(.always-parent) {
48
+ /** Keep it in sync with ElementsTreeElements.updateDecorations **/
49
49
  margin-left: -13px;
50
50
  }
51
51
 
@@ -62,7 +62,7 @@
62
62
  opacity: 60%;
63
63
  }
64
64
 
65
- .elements-disclosure li.parent::before {
65
+ .elements-disclosure li.parent:not(.always-parent)::before {
66
66
  box-sizing: border-box;
67
67
  user-select: none;
68
68
  -webkit-mask-image: var(--image-file-treeoutlineTriangles);
@@ -79,10 +79,6 @@
79
79
  -webkit-mask-position: -16px 0;
80
80
  }
81
81
 
82
- .elements-disclosure li.always-parent::before {
83
- visibility: hidden;
84
- }
85
-
86
82
  .elements-disclosure li .selection {
87
83
  display: none;
88
84
  z-index: -1;
@@ -126,7 +122,7 @@
126
122
 
127
123
  .elements-disclosure ol {
128
124
  list-style-type: none;
129
- /** Keep it in sync with ElementsTreeElements.updateDecorators **/
125
+ /** Keep it in sync with ElementsTreeElements.updateDecorations **/
130
126
  padding-inline-start: 12px;
131
127
  margin: 0;
132
128
  }
@@ -845,6 +845,10 @@ export class TreeElement {
845
845
  }
846
846
  }
847
847
 
848
+ isCollapsible(): boolean {
849
+ return this.collapsible;
850
+ }
851
+
848
852
  setCollapsible(collapsible: boolean): void {
849
853
  if (this.collapsible === collapsible) {
850
854
  return;
package/package.json CHANGED
@@ -53,5 +53,5 @@
53
53
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
54
54
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
55
55
  },
56
- "version": "1.0.954572"
56
+ "version": "1.0.954716"
57
57
  }