juxscript 1.1.148 → 1.1.150
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/machinery/errors.js +8 -2
- package/package.json +1 -1
package/machinery/errors.js
CHANGED
|
@@ -44,7 +44,7 @@ export function generateErrorCollector(options = {}) {
|
|
|
44
44
|
'position:fixed;' + panelPos +
|
|
45
45
|
'z-index:99999;width:36px;height:36px;border-radius:50%;' +
|
|
46
46
|
'background:#e74c3c;color:#fff;font-size:14px;font-weight:bold;' +
|
|
47
|
-
'display:
|
|
47
|
+
'display:flex;align-items:center;justify-content:center;cursor:pointer;' +
|
|
48
48
|
'font-family:monospace;box-shadow:0 2px 8px rgba(0,0,0,0.3);'
|
|
49
49
|
);
|
|
50
50
|
__juxBadge.textContent = '0';
|
|
@@ -58,7 +58,7 @@ export function generateErrorCollector(options = {}) {
|
|
|
58
58
|
'position:fixed;bottom:56px;right:12px;z-index:99998;' +
|
|
59
59
|
'width:480px;max-height:360px;background:#1e1e1e;color:#f8f8f8;' +
|
|
60
60
|
'border:1px solid #e74c3c;border-radius:8px;font-family:monospace;' +
|
|
61
|
-
'font-size:12px;display:
|
|
61
|
+
'font-size:12px;display:flex;flex-direction:column;' +
|
|
62
62
|
'box-shadow:0 4px 16px rgba(0,0,0,0.4);'
|
|
63
63
|
);
|
|
64
64
|
|
|
@@ -126,6 +126,12 @@ export function generateErrorCollector(options = {}) {
|
|
|
126
126
|
__juxBadge.textContent = String(__juxErrors.length);
|
|
127
127
|
__juxBadge.style.display = 'flex';
|
|
128
128
|
|
|
129
|
+
// ✅ Auto-open panel on first error
|
|
130
|
+
if (!__juxVisible) {
|
|
131
|
+
__juxVisible = true;
|
|
132
|
+
__juxPanel.style.display = 'flex';
|
|
133
|
+
}
|
|
134
|
+
|
|
129
135
|
// Add to list
|
|
130
136
|
var item = document.createElement('div');
|
|
131
137
|
item.setAttribute('style',
|