@lokutor/sdk 1.1.28 → 1.1.30
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/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
- package/src/conversational-panel.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -1616,6 +1616,9 @@ var ConversationalPanel = class {
|
|
|
1616
1616
|
this.startBtn.disabled = true;
|
|
1617
1617
|
this.errorEl.classList.remove("is-visible");
|
|
1618
1618
|
this.playConnectingSound();
|
|
1619
|
+
const rect = this.container.getBoundingClientRect();
|
|
1620
|
+
this.container.style.width = rect.width + "px";
|
|
1621
|
+
this.container.style.height = rect.height + "px";
|
|
1619
1622
|
try {
|
|
1620
1623
|
const ConvoAgent = this.cfg.ConvoAgent;
|
|
1621
1624
|
const SphereVisualizer = this.cfg.SphereVisualizer;
|
package/dist/index.mjs
CHANGED
|
@@ -1569,6 +1569,9 @@ var ConversationalPanel = class {
|
|
|
1569
1569
|
this.startBtn.disabled = true;
|
|
1570
1570
|
this.errorEl.classList.remove("is-visible");
|
|
1571
1571
|
this.playConnectingSound();
|
|
1572
|
+
const rect = this.container.getBoundingClientRect();
|
|
1573
|
+
this.container.style.width = rect.width + "px";
|
|
1574
|
+
this.container.style.height = rect.height + "px";
|
|
1572
1575
|
try {
|
|
1573
1576
|
const ConvoAgent = this.cfg.ConvoAgent;
|
|
1574
1577
|
const SphereVisualizer = this.cfg.SphereVisualizer;
|
package/package.json
CHANGED
|
@@ -401,6 +401,11 @@ export class ConversationalPanel {
|
|
|
401
401
|
this.errorEl.classList.remove('is-visible');
|
|
402
402
|
this.playConnectingSound();
|
|
403
403
|
|
|
404
|
+
// Freeze panel dimensions so content changes can't shift layout
|
|
405
|
+
const rect = this.container.getBoundingClientRect();
|
|
406
|
+
this.container.style.width = rect.width + 'px';
|
|
407
|
+
this.container.style.height = rect.height + 'px';
|
|
408
|
+
|
|
404
409
|
try {
|
|
405
410
|
const ConvoAgent = this.cfg.ConvoAgent;
|
|
406
411
|
const SphereVisualizer = this.cfg.SphereVisualizer;
|