feat: server side dashboard css for less repaint (#10850)
This commit is contained in:
parent
686c19abcf
commit
1f31e0eb38
|
|
@ -18,6 +18,15 @@
|
||||||
#}
|
#}
|
||||||
{% extends "superset/basic.html" %}
|
{% extends "superset/basic.html" %}
|
||||||
|
|
||||||
|
{% block head_css %}
|
||||||
|
{{ super() }}
|
||||||
|
{% if custom_css %}
|
||||||
|
<style class="CssEditor-css" type="text/css">
|
||||||
|
{{ custom_css }}
|
||||||
|
</style>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div id="app" data-bootstrap="{{ bootstrap_data }}" />
|
<div id="app" data-bootstrap="{{ bootstrap_data }}" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1700,6 +1700,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
|
||||||
entry="dashboard",
|
entry="dashboard",
|
||||||
standalone_mode=standalone_mode,
|
standalone_mode=standalone_mode,
|
||||||
title=dash.dashboard_title,
|
title=dash.dashboard_title,
|
||||||
|
custom_css=dashboard_data.get("css"),
|
||||||
bootstrap_data=json.dumps(
|
bootstrap_data=json.dumps(
|
||||||
bootstrap_data, default=utils.pessimistic_json_iso_dttm_ser
|
bootstrap_data, default=utils.pessimistic_json_iso_dttm_ser
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue