@d86e/hive-panel 1.0.19 → 1.0.20
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 +1 -1
- package/public/panel.css +6 -6
- package/public/panel.js +21 -10
package/package.json
CHANGED
package/public/panel.css
CHANGED
|
@@ -1323,12 +1323,12 @@ dialog.hive-dialog .hive-dialog-body { flex: 1 1 auto; min-height: 0; overflow:
|
|
|
1323
1323
|
|
|
1324
1324
|
|
|
1325
1325
|
/* Human-readable event rows with collapsed raw details. */
|
|
1326
|
-
.hive-event { display: flex; flex-direction: row; align-items: center; gap: 8px; height: 28px; min-height: 28px; padding: 0 7px; overflow: hidden; font-size: 11px; line-height: 1.5; }
|
|
1326
|
+
.hive-event { display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; height: 28px; min-height: 28px; padding: 0 7px; overflow: hidden; font-size: 11px; line-height: 1.5; }
|
|
1327
1327
|
.hive-event-sentence { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--hive-fg-soft); text-overflow: ellipsis; white-space: nowrap; }
|
|
1328
|
-
.hive-event-raw { flex: 0 0 auto; }
|
|
1328
|
+
.hive-event-raw { position: static; flex: 0 0 auto; }
|
|
1329
1329
|
.hive-event-summary { width: fit-content; color: var(--hive-fg-faint); font-size: 10px; line-height: 1.5; cursor: pointer; white-space: nowrap; }
|
|
1330
|
-
.hive-event-json { max-height:
|
|
1331
|
-
.hive-event
|
|
1332
|
-
.hive-event
|
|
1333
|
-
.hive-event
|
|
1330
|
+
.hive-event-json { max-height: none; margin: 4px 0 0; padding: 6px; overflow: visible; font-size: 10px; }
|
|
1331
|
+
.hive-event.is-expanded { flex-wrap: wrap; align-items: flex-start; height: auto; min-height: 28px; padding: 5px 7px; overflow: visible; }
|
|
1332
|
+
.hive-event.is-expanded .hive-event-sentence { flex-basis: 100%; white-space: normal; }
|
|
1333
|
+
.hive-event.is-expanded .hive-event-raw { flex-basis: 100%; }
|
|
1334
1334
|
|
package/public/panel.js
CHANGED
|
@@ -2142,14 +2142,14 @@ dialog.hive-dialog .hive-dialog-body { flex: 1 1 auto; min-height: 0; overflow:
|
|
|
2142
2142
|
.hive-event-list { flex: 1 1 auto; min-height: 0; max-height: none; padding: 8px 10px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: auto; }
|
|
2143
2143
|
.hive-event-error { color: var(--hive-danger); font-size: 11px; line-height: 1.5; }
|
|
2144
2144
|
/* Human-readable event rows with collapsed raw details. */
|
|
2145
|
-
.hive-event { display: flex; flex-direction: row; align-items: center; gap: 8px; height: 28px; min-height: 28px; padding: 0 7px; overflow: hidden; font-size: 11px; line-height: 1.5; }
|
|
2145
|
+
.hive-event { display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; height: 28px; min-height: 28px; padding: 0 7px; overflow: hidden; font-size: 11px; line-height: 1.5; }
|
|
2146
2146
|
.hive-event-sentence { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--hive-fg-soft); text-overflow: ellipsis; white-space: nowrap; }
|
|
2147
|
-
.hive-event-raw { flex: 0 0 auto; }
|
|
2147
|
+
.hive-event-raw { position: static; flex: 0 0 auto; }
|
|
2148
2148
|
.hive-event-summary { width: fit-content; color: var(--hive-fg-faint); font-size: 10px; line-height: 1.5; cursor: pointer; white-space: nowrap; }
|
|
2149
|
-
.hive-event-json { max-height:
|
|
2150
|
-
.hive-event
|
|
2151
|
-
.hive-event
|
|
2152
|
-
.hive-event
|
|
2149
|
+
.hive-event-json { max-height: none; margin: 4px 0 0; padding: 6px; overflow: visible; font-size: 10px; }
|
|
2150
|
+
.hive-event.is-expanded { flex-wrap: wrap; align-items: flex-start; height: auto; min-height: 28px; padding: 5px 7px; overflow: visible; }
|
|
2151
|
+
.hive-event.is-expanded .hive-event-sentence { flex-basis: 100%; white-space: normal; }
|
|
2152
|
+
.hive-event.is-expanded .hive-event-raw { flex-basis: 100%; }
|
|
2153
2153
|
`;
|
|
2154
2154
|
|
|
2155
2155
|
const LANE_LABEL_KEYS = Object.freeze({
|
|
@@ -8009,6 +8009,7 @@ function renderMarkdownInto(doc, host, source) {
|
|
|
8009
8009
|
const rect = row.getBoundingClientRect();
|
|
8010
8010
|
if (rect && Number(rect.height) > 0) return Number(rect.height);
|
|
8011
8011
|
}
|
|
8012
|
+
if (Number(row.offsetHeight) > 0) return Number(row.offsetHeight);
|
|
8012
8013
|
return 28;
|
|
8013
8014
|
}
|
|
8014
8015
|
|
|
@@ -8022,9 +8023,13 @@ function renderMarkdownInto(doc, host, source) {
|
|
|
8022
8023
|
return Number(rowRect.top) - Number(listRect.top);
|
|
8023
8024
|
}
|
|
8024
8025
|
}
|
|
8025
|
-
const index = (eventsList.children || []).indexOf(row);
|
|
8026
8026
|
if (Number.isFinite(Number(row.offsetTop))) return Number(row.offsetTop) - (Number(eventsList.scrollTop) || 0);
|
|
8027
|
-
|
|
8027
|
+
let offset = -(Number(eventsList.scrollTop) || 0);
|
|
8028
|
+
for (const child of eventsList.children || []) {
|
|
8029
|
+
if (child === row) break;
|
|
8030
|
+
offset += eventRowHeight(child);
|
|
8031
|
+
}
|
|
8032
|
+
return offset;
|
|
8028
8033
|
}
|
|
8029
8034
|
|
|
8030
8035
|
function captureEventAnchor() {
|
|
@@ -8122,10 +8127,16 @@ function renderMarkdownInto(doc, host, source) {
|
|
|
8122
8127
|
if (eventState.expanded.has(key)) {
|
|
8123
8128
|
details.open = true;
|
|
8124
8129
|
setAttr(details, "open", "");
|
|
8130
|
+
row.className = "hive-event is-expanded";
|
|
8125
8131
|
}
|
|
8126
8132
|
details.addEventListener("toggle", () => {
|
|
8127
|
-
if (details.open)
|
|
8128
|
-
|
|
8133
|
+
if (details.open) {
|
|
8134
|
+
row.className = "hive-event is-expanded";
|
|
8135
|
+
eventState.expanded.add(key);
|
|
8136
|
+
} else {
|
|
8137
|
+
row.className = "hive-event";
|
|
8138
|
+
eventState.expanded.delete(key);
|
|
8139
|
+
}
|
|
8129
8140
|
});
|
|
8130
8141
|
row.appendChild(details);
|
|
8131
8142
|
return { row, details, key };
|