Increasing size of chat box, font, and chat icon

Hello!

Hoping to get some CSS help with customizing the sizing of all of these elements? This might be a good idea to add to widget customizations as well :slight_smile:

1 Like

Hi there, @lwaterskatz :waving_hand:

Could you please specify what you mean under the chat icon? It is a bubble icon (1) or icons of the chat sources (2)?

Hey there @Max! Number 1 and the entire popup :slight_smile:

1 Like

Got it, thanks!

  1. Here is the code to change the size of the bubble icon:
[class*='FloatingButton__FloatingButtonContainer-sc'] [class*='Icon__IconContainer-sc'],
[class*='FloatingButton__FloatingButtonContainer-sc'] img{
  width: 30px!important;
  height: 30px!important;
}

  1. These codes will help you change the size of the text elements in the widget:

Button Text


[class*="ButtonBase__Overlay-sc"] {
  font-size: 30px;
}


Welcome Message

[class*='ChatLayout__Text-sc'] {
  font-size: 20px;
}

Name in the Header

[class*="Header__Name-sc"] {
  font-size: 20px;
}
  1. This code will increase the size of the chat window:
.global-styles, [class^="Window__Content-sc"] {
transform: scale(1.1)
}

  1. After increasing the size of the chat window, it may cover the chat bubble. To avoid, you can move up the chat window, using this code:
[class*='FloatingWindow__Container-sc'] {
  bottom: 180px!important;
}

Check it out and let me know if it helped :slightly_smiling_face:

2 Likes

Thank you so much!! is there a way to shrink the font in the buttons all while keeping the font in the chat different. Also increasing the image size, time stamp, and closing X? These codes are amazing!

Hi there, @lwaterskatz :waving_hand:

Sure! To adjust the text size, please remove this code from the widget:

[class*="ButtonBase__Overlay-sc"] {
  font-size: 30px;
}

And here is the code to independently change the font size in the chat bubble and chat buttons:

[class*="ChatButton__DefaultButtonComponent-sc"]
[class*="ButtonBase__Ellipsis-sc"] {
  font-size: 12px;
}

[class*="FloatingButton__FloatingButtonContainer-sc"]
[class*="ButtonBase__Ellipsis-sc"] {
  font-size: 29px;
}

Change size of avatar:

[class*="Avatar__Container-sc-"] {
  scale: 1.5;
}

Change size of Close button

[class*="Close__Component-sc"] {
  scale: 1.5;
}

Change size of time stamp

[class*="ChatLayout__Time-sc"] {
  scale:1.5;
}

Please try it out and let me know how it worked :slightly_smiling_face:

1 Like