@delt/claude-alarm 0.6.22 → 0.6.24
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.
|
@@ -1153,6 +1153,7 @@
|
|
|
1153
1153
|
renderSessions();
|
|
1154
1154
|
renderMessages();
|
|
1155
1155
|
updateImageUI();
|
|
1156
|
+
$('#msgInput').focus();
|
|
1156
1157
|
}
|
|
1157
1158
|
|
|
1158
1159
|
function updateImageUI() {
|
|
@@ -1202,7 +1203,11 @@
|
|
|
1202
1203
|
el.innerHTML += '<div class="typing-indicator active"><div class="typing-dots"><span></span><span></span><span></span></div></div>';
|
|
1203
1204
|
}
|
|
1204
1205
|
renderPermissionBar();
|
|
1205
|
-
|
|
1206
|
+
// Only auto-scroll if user is near the bottom (within 150px)
|
|
1207
|
+
setTimeout(() => {
|
|
1208
|
+
const gap = el.scrollHeight - el.scrollTop - el.clientHeight;
|
|
1209
|
+
if (gap < 150) el.scrollTop = el.scrollHeight;
|
|
1210
|
+
}, 0);
|
|
1206
1211
|
}
|
|
1207
1212
|
|
|
1208
1213
|
function renderNotifications() {
|
package/package.json
CHANGED
package/src/dashboard/index.html
CHANGED
|
@@ -1153,6 +1153,7 @@
|
|
|
1153
1153
|
renderSessions();
|
|
1154
1154
|
renderMessages();
|
|
1155
1155
|
updateImageUI();
|
|
1156
|
+
$('#msgInput').focus();
|
|
1156
1157
|
}
|
|
1157
1158
|
|
|
1158
1159
|
function updateImageUI() {
|
|
@@ -1202,7 +1203,11 @@
|
|
|
1202
1203
|
el.innerHTML += '<div class="typing-indicator active"><div class="typing-dots"><span></span><span></span><span></span></div></div>';
|
|
1203
1204
|
}
|
|
1204
1205
|
renderPermissionBar();
|
|
1205
|
-
|
|
1206
|
+
// Only auto-scroll if user is near the bottom (within 150px)
|
|
1207
|
+
setTimeout(() => {
|
|
1208
|
+
const gap = el.scrollHeight - el.scrollTop - el.clientHeight;
|
|
1209
|
+
if (gap < 150) el.scrollTop = el.scrollHeight;
|
|
1210
|
+
}, 0);
|
|
1206
1211
|
}
|
|
1207
1212
|
|
|
1208
1213
|
function renderNotifications() {
|