-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
feat: server side dashboard css for less repaint #10850
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10850 +/- ##
==========================================
- Coverage 65.46% 60.98% -4.49%
==========================================
Files 809 809
Lines 38154 38152 -2
Branches 3605 3605
==========================================
- Hits 24979 23266 -1713
- Misses 13066 14700 +1634
- Partials 109 186 +77
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
a2b55f5
to
984b5e2
Compare
{{ super() }} | ||
{% if custom_css %} | ||
<style class="CssEditor-css" type="text/css"> | ||
{{ custom_css }} |
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.
malicious strings should be escaped by Jinja.
{% block head_css %} | ||
{{ super() }} | ||
{% if custom_css %} | ||
<style class="CssEditor-css" type="text/css"> |
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.
Must add this class so that live-edits can updating previous CSS.
984b5e2
to
9f33735
Compare
9f33735
to
f434b22
Compare
SUMMARY
Add custom dashboard css to server side rendering so the page doesn't have to repaint when refresh.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
Since custom CSS is added after dashboard is loaded, when loading a dashboard, you may see an annoying repaint:
After
No repaint when refreshing the page:
TEST PLAN
Manual testing.
ADDITIONAL INFORMATION