Mr.doob 1 год назад
Родитель
Сommit
72937b1dbd
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      editor/js/Agent.js

+ 2 - 0
editor/js/Agent.js

@@ -70,6 +70,8 @@ class Agent {
 		messageBubble.style.marginBottom = '8px';
 		messageBubble.style.fontSize = '14px';
 		messageBubble.style.position = 'relative';
+		messageBubble.style.maxHeight = '400px';  // Add max height
+		messageBubble.style.overflowY = 'auto';   // Add vertical scrollbar when needed
 
 		// Add message container first
 		const messageContainer = document.createElement( 'div' );

粤ICP备19079148号