Commit 19dae648 authored by Romain Clement's avatar Romain Clement
Browse files

Keep background card style for chart view

parent 4df49c9a
......@@ -30,7 +30,7 @@ Define dashboards within `metadata.yml` / `metadata.json`:
```yaml
plugins:
datasette-dashboards:
my_dashboard:
my-dashboard:
title: My Dashboard
description: Showing some nice metrics
layout:
......
......@@ -32,10 +32,12 @@
<p><a class="not-underlined" title="{{ chart.query }}" href="{{ urls.database(chart.db) }}?{{ {'sql': chart.query}|urlencode|safe }}">&#x270e; <span class="underlined">View and edit SQL</span></a></p>
{% endif %}
<div id="chart" class="chart-container">
{% if chart.library == 'markdown' %}
{{ render_markdown(chart.display) }}
{% endif %}
<div class="dashboard-card">
<div id="chart" class="chart-container">
{% if chart.library == 'markdown' %}
{{ render_markdown(chart.display) }}
{% endif %}
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vega@5.20.2"></script>
......
......@@ -5,7 +5,7 @@ description_html: |-
Try it out at <a href="/-/dashboards">/-/dashboards</a>
plugins:
datasette-dashboards:
job_offers_stats:
job-offers-stats:
title: Job offers statistics
description: Gather metrics about job offers
layout:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment