Explorar o código

Improved messageBubble.

Mr.doob hai 1 ano
pai
achega
72937b1dbd
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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号