fix(web-console): align status cards and command history
This commit is contained in:
@@ -120,6 +120,11 @@ import { Fragment, createApp, h, nextTick, reactive } from "vue";
|
||||
open: state.open,
|
||||
onToggle(event) {
|
||||
state.open = event.currentTarget.open;
|
||||
if (!state.open) return;
|
||||
const transcript = document.querySelector("#assistantMessages");
|
||||
transcript?.querySelectorAll(".assistant-dispatched-controls[open]").forEach((card) => {
|
||||
if (card !== event.currentTarget) card.open = false;
|
||||
});
|
||||
},
|
||||
}, [
|
||||
h("summary", null, [
|
||||
|
||||
Reference in New Issue
Block a user