cmdzero 0.7.1 → 0.7.2
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/overlay/overlay.js +8 -1
- package/package.json +1 -1
package/overlay/overlay.js
CHANGED
|
@@ -1110,7 +1110,13 @@
|
|
|
1110
1110
|
const historyChip = el('div', 'cz-history');
|
|
1111
1111
|
historyChip.style.display = 'none';
|
|
1112
1112
|
const tweaksWrap = el('div', 'cz-wrap');
|
|
1113
|
-
|
|
1113
|
+
const pinNewestToBottom = () => { if (tweaksWrap.classList.contains('cz-expanded')) tweaksWrap.scrollTop = tweaksWrap.scrollHeight; };
|
|
1114
|
+
historyChip.onclick = () => {
|
|
1115
|
+
tweaksWrap.classList.toggle('cz-expanded');
|
|
1116
|
+
updateHistoryUI();
|
|
1117
|
+
// when expanded the list scrolls; keep the newest (bottom) in view
|
|
1118
|
+
requestAnimationFrame(pinNewestToBottom);
|
|
1119
|
+
};
|
|
1114
1120
|
tray.appendChild(historyChip);
|
|
1115
1121
|
const fade = el('div', 'cz-fade');
|
|
1116
1122
|
fade.style.display = 'none';
|
|
@@ -1248,6 +1254,7 @@
|
|
|
1248
1254
|
tweakData.set(key, { ...(tweakData.get(key) || {}), ...t, id: key });
|
|
1249
1255
|
if (!hydrate) persistTweaks();
|
|
1250
1256
|
updateHistoryUI();
|
|
1257
|
+
if (!hydrate) pinNewestToBottom(); // keep the newest alert in view when expanded
|
|
1251
1258
|
}
|
|
1252
1259
|
|
|
1253
1260
|
// Replay saved alerts after a page load so history survives reloads.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmdzero",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Tweak your UI live in the browser and write the changes straight to source. Copy and Tailwind edits cost zero tokens; everything else routes to a right-sized model via headless claude.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|