You need to sign in to do that
Don't have an account?
Chris 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';
})();
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 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
Chris Mair
Just wanted to update this and note that you can set these parameters using a CSS override in the Community. Works great.