File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed 
components/content/streaming Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ const useStyles = makeStyles({
7373  } , 
7474  humanBubble : { 
7575    backgroundColor : 'var(--colorBrandBackground)' , 
76-     color : 'var(--colorNeutralForegroundInverted)'  , 
76+     color : 'white !important'  ,   // Force white text in both light and dark modes 
7777    maxWidth : '80%' , 
78+     padding : '12px 16px' , 
79+     lineHeight : '1.5' , 
7880    alignSelf : 'flex-end' 
7981  } , 
8082  botBubble : { 
@@ -88,7 +90,7 @@ const useStyles = makeStyles({
8890  clarificationBubble : { 
8991    backgroundColor : 'var(--colorNeutralBackground2)' , 
9092    color : 'var(--colorNeutralForeground1)' , 
91-     padding : '6px 8px' ,  // Reduced from 12px 16px 
93+     padding : '6px 8px' ,  
9294    borderRadius : '8px' , 
9395    fontSize : '14px' , 
9496    lineHeight : '1.5' , 
Original file line number Diff line number Diff line change @@ -320,9 +320,17 @@ export const getAgentDisplayName = (agentName: string): string => {
320320    // Remove "Agent" suffix if it exists (case insensitive) 
321321    cleanName  =  cleanName . replace ( / \s * a g e n t \s * $ / gi,  '' ) . trim ( ) ; 
322322
323+     // Convert to proper case 
324+     cleanName  =  cleanName 
325+         . replace ( / \b H R H e l p e r \b / gi,  'HR Helper' ) 
326+         . replace ( / \b H R ( [ A - Z ] ) / g,  'HR $1' )         // Add space after HR before capital letter 
327+         . replace ( / \b I T ( [ A - Z ] ) / g,  'IT $1' )         // Add space after IT before capital letter 
328+         . replace ( / \b A P I ( [ A - Z ] ) / g,  'API $1' ) ;      // Add space after API before capital letter 
329+ 
323330    // Convert to proper case 
324331    cleanName  =  cleanName . replace ( / \b \w / g,  l  =>  l . toUpperCase ( ) ) ; 
325332
333+     
326334    // Handle special cases for better readability 
327335    cleanName  =  cleanName 
328336        . replace ( / \b K b \b / g,  'KB' )           // KB instead of Kb 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments