Open simonw opened 4 years ago
@media only screen and (max-width: 576px) {
Datasette treats 576px as the cut-off point for portrait mode (when tables lose their headers).
So if (window.innerWidth < 576)
should do the trick.
The box should update when they DO switch to landscape - otherwise the user has to rotate to landscape and then refresh the page, and they won't know they need to do that.
The plugin only makes sense in table view mode right now, easiest way to access it on mobile is to rotate to landscape! It should tell people that.