@herb-tools/dev-tools 0.8.5 → 0.8.7
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": "@herb-tools/dev-tools",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "Development tools for visual debugging in HTML+ERB templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"bugs": "https://github.com/marcoroth/herb/issues/new?title=Package%20%60@herb-tools/dev-tools%60:%20",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/marcoroth/herb.git",
|
|
11
|
+
"url": "git+https://github.com/marcoroth/herb.git",
|
|
12
12
|
"directory": "javascript/packages/dev-tools"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist/herb-dev-tools.umd.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@herb-tools/core": "0.8.
|
|
33
|
+
"@herb-tools/core": "0.8.7"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"package.json",
|
package/src/herb-overlay.ts
CHANGED
|
@@ -537,7 +537,9 @@ export class HerbOverlay {
|
|
|
537
537
|
|
|
538
538
|
parent.setAttribute('data-herb-debug-attached-outline-type', type);
|
|
539
539
|
|
|
540
|
-
parent.
|
|
540
|
+
if (window.getComputedStyle(parent).position === 'static') {
|
|
541
|
+
parent.style.position = 'relative';
|
|
542
|
+
}
|
|
541
543
|
label.style.position = 'absolute';
|
|
542
544
|
label.style.top = '0';
|
|
543
545
|
label.style.left = '0';
|
|
@@ -546,7 +548,13 @@ export class HerbOverlay {
|
|
|
546
548
|
return;
|
|
547
549
|
}
|
|
548
550
|
|
|
549
|
-
element.
|
|
551
|
+
if (element.localName === 'html' || window.getComputedStyle(element).overflowY !== 'visible') {
|
|
552
|
+
label.style.top = '0';
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
if (window.getComputedStyle(element).position === 'static') {
|
|
556
|
+
element.style.position = 'relative';
|
|
557
|
+
}
|
|
550
558
|
element.appendChild(label);
|
|
551
559
|
}
|
|
552
560
|
|