-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Initial loading feedback was missing #10028
Conversation
@@ -71,8 +71,7 @@ RocketChat.settings.get('Assets_SvgFavicon_Enable', (key, value) => { | |||
}); | |||
|
|||
RocketChat.settings.get('theme-color-sidebar-background', (key, value) => { | |||
Inject.rawHead(key, `<style>body { background-color: ${ value };}</style>` + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason removing it from here and adding it to "external" CSS? the idea was just this, not need to wait for the whole CSS to apply the initial background color
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you load the app the css is up already, but I forgot that you can change this color... in that case the app will load the default color. I'll fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the first time you enter on a server, his css is not up already 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wrong on my comment. @ggazzo made a dynamic css loader script that runs before that, so it will work with the colors that the user set on DB.
@RocketChat/core