function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chris MairChris Mair 

Change height and width of chat snap in in a Community

Has anyone successfuly done this?  I created a JavaScript file and added it as a static resource, then referenced that in the Snap In settings in the Community builder but it doesn't change anything.

My code is:

window._snapinsSnippetSettingsFile = (function() {
console.log("Snippet settings file loaded.");    // Logs that the snippet settings file was loaded successfully


embedded_svc.settings.widgetWidth = '640px';
embedded_svc.settings.widgetHeight = '498px';
embedded_svc.settings.widgetFontSize = '20px';


})();
Raj VakatiRaj Vakati
FOr sure you are setting the values correctly. Can you do one thing for testing. Go to Console and try to change the style width and hight and see the changes are reflecting or not 
 
embedded_svc.settings.widgetWidth = '320px';
embedded_svc.settings.widgetHeight = '498px';
embedded_svc.settings.widgetFontSize = '16px';

 
Chris MairChris Mair
Just wanted to update this and note that you can set these parameters using a CSS override in the Community.  Works great.