You need to pass the CSS string in CallSettings in setCustomCSS.
Copy
Ask AI
var callsettings = new CometChat.CallSettingsBuilder().setSessionID(sessionID).setIsAudioOnlyCall(false).showEndCallButton(true).enableDefaultLayout(true).showScreenShareButton(true).showMuteAudioButton(true).showEndCallButton(true).showScreenShareButton(true).showPauseVideoButton(true).setCustomCSS(CSS). //HERE.build();
There are a few common classes used for different modes in the call screen
custom-main-container
This is the most outer component of the calling component.
Copy
Ask AI
//Default value is{height: 100vh;width: 100vw;}
custom—tile-main-call-container
This the Container of the main video and till list or a local stream component.
Copy
Ask AI
#Default style{height: 100%;display: flex;flex: 1;flex-direction: row; //if opened in mobile and in portrait mode its value is columnjustify-content: flex-start;}
custom-name
This class is passed in user name text in all components.
It is recommended to not pass CSS of other classes which are not listed here as it may cause some UI issues. Also resizing of the grid container is not allowed as it may affect the layout of grid mode.