fix: tag editor hopefully working and fixes to test runner

This commit is contained in:
2026-05-02 11:24:51 +02:00
parent a4ea24faa2
commit 73e066c330
5 changed files with 146 additions and 16 deletions

View File

@@ -830,6 +830,35 @@ document.addEventListener("DOMContentLoaded", () => {
}
},
TagsSectionScroll: {
mounted() {
this.lastTargetId = null;
this.scrollToSelectedSection();
},
updated() {
this.scrollToSelectedSection();
},
scrollToSelectedSection() {
const targetId = this.el.dataset.tagsScrollTarget;
if (!targetId || targetId === this.lastTargetId) {
return;
}
this.lastTargetId = targetId;
window.requestAnimationFrame(() => {
const target = document.getElementById(targetId);
if (target && this.el.contains(target)) {
target.scrollIntoView({ block: "start", behavior: "smooth" });
}
});
}
},
ChatSurface: {
mounted() {
this.stickToBottom = true;