Procházet zdrojové kódy

Improved messageBubble.

Mr.doob před 1 rokem
rodič
revize
72937b1dbd
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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号