Tighten up table column CSS

This commit is contained in:
Simon Willison 2020-10-27 12:01:44 -07:00
commit 62286b46a9

View file

@ -8,9 +8,9 @@
<script src="{{ urls.static('table.js') }}" defer></script>
<style>
@media only screen and (max-width: 576px) {
{% for column in display_columns %}
{% for column in display_columns -%}
.rows-and-columns td:nth-of-type({{ loop.index }}):before { content: "{{ column.name|escape_css_string }}"; }
{% endfor %}
{% endfor %}}
</style>
{% endblock %}