-
Notifications
You must be signed in to change notification settings - Fork 91
Indefinite polling of custom css style #127
Comments
Hi @kooshanabedian , It's a fairly simple setup at the moment to be honest with you. This is how it is loaded on the DOM:
And Cheers! |
Hi,
I suppose I need to use [customTheme] option, and I use it like this in my ts file: [customTheme]=" './chat.component.css' " but it does'nt work. Thank's for your help |
Hi @anakin59490 , You have to pass the When you pass the enum to ng-chat, it will create a wrapping class to the component with the string value of that enum. So for your custom css you will have to add everything inner to Not everything can be customized but my suggestion is for you to have a look at how I've built the light and dark themes: Once you open these scss files you will clearly see the enum string values there ( Hope this helps! Cheers! |
sanitizer.bypassSecurityTrustResourceUrl is also being used on images causing them to load many times. In order to fix this you can apply the method only once in the component or you could create a pipe.
|
This should now be fixed with version 2.0.5: https://github.com/rpaschoal/ng-chat/releases/tag/2.0.5 👍 |
Hi,
I have opt in to use my custom css file and luckily got it working the way I wanted. The only problem is that I noticed that the app is showing some unexpected behavior! Polling my customstyle.css file indefinitely like the way it polls listoffriends. Is this intended? If so, how can I shut it down or at least do less frequent polls.
Thanks for the amazing job!
The text was updated successfully, but these errors were encountered: