Skip to content
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

Use CSS media query to switch to single column on narrow screens #106

Closed
simonw opened this issue May 11, 2021 · 1 comment
Closed

Use CSS media query to switch to single column on narrow screens #106

simonw opened this issue May 11, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@simonw
Copy link
Owner

simonw commented May 11, 2021

So we don't get this:

SQL_Dashboard_and_API_for_merging_two_locations__and_resolving_the_associated_task__if_one_exists__·_Issue__544_·_CAVaccineInventory_vial

@simonw simonw added the enhancement New feature or request label May 11, 2021
@simonw
Copy link
Owner Author

simonw commented May 14, 2021

Extracting that CSS out of the inline styles will be nice too:

<h2>Available tables</h2>
<ul style="column-count: 2">
{% for table in available_tables %}
<li style="break-inside: avoid;"><a href="?sql={% filter sign_sql|urlencode %}select count(*) from {{ table.name }}{% endfilter %}&sql={% filter sign_sql|urlencode %}select * from {{ table.name }}{% endfilter %}">{{ table.name }}</a>
<br><span style="text-indent: 1em; color: #666; font-size: 0.8em">{{ table.columns }}</span></li>
{% endfor %}
</ul>

@simonw simonw closed this as completed in b0f4a6d May 14, 2021
@simonw simonw added this to the 0.14 milestone May 16, 2021
simonw added a commit that referenced this issue May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant